Skip to content

Commit

Permalink
Compatible with latest fc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
srpatel19590 committed Sep 28, 2019
1 parent 36240a0 commit 6c35457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ BOOST_AUTO_TEST_CASE( saving_keys_wallet_test ) {
BOOST_CHECK_NO_THROW( cli.con.wallet_api_ptr->transfer( "nathan", "account1", "9000", "1.3.0", "", true ) );

std::string path( cli.app_dir.path().generic_string() + "/wallet.json" );
graphene::wallet::wallet_data wallet = fc::json::from_file( path ).as<graphene::wallet::wallet_data>();
graphene::wallet::wallet_data wallet = fc::json::from_file( path ).as<graphene::wallet::wallet_data>( 2 * GRAPHENE_MAX_NESTED_OBJECTS );
BOOST_CHECK( wallet.extra_keys.size() == 1 ); // nathan
BOOST_CHECK( wallet.pending_account_registrations.size() == 1 ); // account1
BOOST_CHECK( wallet.pending_account_registrations["account1"].size() == 2 ); // account1 active key + account1 memo key
Expand All @@ -812,7 +812,7 @@ BOOST_AUTO_TEST_CASE( saving_keys_wallet_test ) {
BOOST_CHECK( generate_block( cli.app1 ) );
fc::usleep( fc::seconds(1) );

wallet = fc::json::from_file( path ).as<graphene::wallet::wallet_data>();
wallet = fc::json::from_file( path ).as<graphene::wallet::wallet_data>( 2 * GRAPHENE_MAX_NESTED_OBJECTS );
BOOST_CHECK( wallet.extra_keys.size() == 2 ); // nathan + account1
BOOST_CHECK( wallet.pending_account_registrations.empty() );
BOOST_CHECK_NO_THROW( cli.con.wallet_api_ptr->transfer( "account1", "nathan", "1000", "1.3.0", "", true ) );
Expand Down

0 comments on commit 6c35457

Please sign in to comment.