Skip to content

Commit

Permalink
add supply tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed May 3, 2024
1 parent d664b5a commit 7fb34dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/eosio.system_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5548,12 +5548,15 @@ BOOST_FIXTURE_TEST_CASE( b1_vesting, eosio_system_tester ) try {
unstake( b1, b1, small_amount, small_amount ) );

const int64_t before = get_voter_info( b1 )["staked"].as<int64_t>();
const asset before_supply = get_token_supply();
BOOST_REQUIRE_EQUAL( before, 646703490000 );

BOOST_REQUIRE_EQUAL( success(), unvest( b1, stake_amount - final_amount, stake_amount - final_amount ) );
const int64_t after = get_voter_info( b1 )["staked"].as<int64_t>();
const asset after_supply = get_token_supply();

BOOST_REQUIRE_EQUAL( after, 0 );
BOOST_REQUIRE_EQUAL( after_supply.get_amount() - before_supply.get_amount(), -646703490000 );

} FC_LOG_AND_RETHROW()

Expand Down

0 comments on commit 7fb34dd

Please sign in to comment.