Skip to content

Commit

Permalink
Merge pull request EOSIO#348 from EOSIO/change-eosio-dependency
Browse files Browse the repository at this point in the history
Update minimum EOSIO dependency to 2.0.x
  • Loading branch information
arhag authored Oct 2, 2019
2 parents bd33261 + 9310951 commit 85dd4c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required( VERSION 3.5 )

set(EOSIO_VERSION_MIN "1.8")
set(EOSIO_VERSION_SOFT_MAX "1.8")
set(EOSIO_VERSION_MIN "2.0")
set(EOSIO_VERSION_SOFT_MAX "2.0")
#set(EOSIO_VERSION_HARD_MAX "")

find_package(eosio)
Expand Down
6 changes: 3 additions & 3 deletions tests/eosio.token_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,22 @@ class eosio_token_tester : public tester {
act.name = name;
act.data = abi_ser.variant_to_binary( action_type_name, data,abi_serializer_max_time );

return base_tester::push_action( std::move(act), uint64_t(signer));
return base_tester::push_action( std::move(act), signer.to_uint64_t() );
}

fc::variant get_stats( const string& symbolname )
{
auto symb = eosio::chain::symbol::from_string(symbolname);
auto symbol_code = symb.to_symbol_code().value;
vector<char> data = get_row_by_account( N(eosio.token), symbol_code, N(stat), symbol_code );
vector<char> data = get_row_by_account( N(eosio.token), name(symbol_code), N(stat), account_name(symbol_code) );
return data.empty() ? fc::variant() : abi_ser.binary_to_variant( "currency_stats", data, abi_serializer_max_time );
}

fc::variant get_account( account_name acc, const string& symbolname)
{
auto symb = eosio::chain::symbol::from_string(symbolname);
auto symbol_code = symb.to_symbol_code().value;
vector<char> data = get_row_by_account( N(eosio.token), acc, N(accounts), symbol_code );
vector<char> data = get_row_by_account( N(eosio.token), acc, N(accounts), account_name(symbol_code) );
return data.empty() ? fc::variant() : abi_ser.binary_to_variant( "account", data, abi_serializer_max_time );
}

Expand Down

0 comments on commit 85dd4c4

Please sign in to comment.