Skip to content

Commit

Permalink
Fixed exchange contract so it fills bids
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemaster committed Jul 18, 2017
1 parent 4190d53 commit f038f6f
Show file tree
Hide file tree
Showing 15 changed files with 95 additions and 3,453 deletions.
360 changes: 0 additions & 360 deletions contracts/currency/currency.wast.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion contracts/eoslib/math.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ namespace eos {
}

private:
uint128_t value;
uint128_t value = 0;
};

/**
Expand Down
1 change: 1 addition & 0 deletions contracts/eoslib/message.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once
#include <eoslib/message.h>
#include <eoslib/print.hpp>

namespace eos {

Expand Down
4 changes: 4 additions & 0 deletions contracts/eoslib/print.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace eos {

static_assert( sizeof(long) == sizeof(int), "unexpected size difference" );

inline void print( const char* ptr ) {
prints(ptr);
Expand All @@ -19,6 +20,9 @@ namespace eos {
inline void print( int num ) {
printi(num);
}
inline void print( unsigned int num ) {
printi(num);
}

inline void print( uint128 num ) {
printi128((uint128_t*)&num);
Expand Down
Loading

0 comments on commit f038f6f

Please sign in to comment.