Skip to content

Commit

Permalink
Modified tests to account for the addition sps_fund operation
Browse files Browse the repository at this point in the history
  • Loading branch information
sgerbino committed Jul 23, 2019
1 parent 0a7ddfd commit 0b5a03e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libraries/chain/util/impacted.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ struct get_impacted_account_visitor

void operator()( const sps_fund_operation& op )
{
_impacted.insert(STEEM_TREASURY_ACCOUNT);
_impacted.insert( STEEM_TREASURY_ACCOUNT );
}

void operator()( const hardfork_operation& op )
Expand Down
6 changes: 3 additions & 3 deletions tests/tests/operation_time_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ BOOST_AUTO_TEST_CASE( vesting_withdrawals )
const auto& alice = db->get_account( "alice" );

gpo = db->get_dynamic_global_properties();
fill_op = get_last_operations( 1 )[0].get< fill_vesting_withdraw_operation >();
fill_op = get_last_operations( 2 )[1].get< fill_vesting_withdraw_operation >();

BOOST_REQUIRE( alice.vesting_shares.amount.value == ( vesting_shares - withdraw_rate ).amount.value );
BOOST_REQUIRE( balance.amount.value + ( withdraw_rate * gpo.get_vesting_share_price() ).amount.value - alice.balance.amount.value <= 1 );
Expand Down Expand Up @@ -2062,8 +2062,8 @@ BOOST_AUTO_TEST_CASE( liquidity_rewards )

generate_blocks( db->head_block_time() + fc::seconds( STEEM_MIN_LIQUIDITY_REWARD_PERIOD_SEC_HF10.to_seconds() / 2 ), true );

ops = get_last_operations( 3 );
fill_order_op = ops[2].get< fill_order_operation >();
ops = get_last_operations( 4 );
fill_order_op = ops[3].get< fill_order_operation >();

BOOST_REQUIRE( fill_order_op.open_owner == "alice" );
BOOST_REQUIRE( fill_order_op.open_orderid == 6 );
Expand Down

0 comments on commit 0b5a03e

Please sign in to comment.