Skip to content

Commit

Permalink
1545 Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Nov 19, 2024
1 parent d938467 commit 929e680
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unittests/libweb3jsonrpc/jsonrpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3686,6 +3686,7 @@ BOOST_AUTO_TEST_CASE( etherbase_generation2 ) {
txHash = fixture.rpcClient->eth_sendTransaction( partiallyRetrieveTx );
BOOST_REQUIRE( !txHash.empty() );
dev::eth::mineTransaction( *( fixture.client ), 1 );
fixture.client->state().getOriginalDb()->createBlockSnap( 3 );
auto t = fixture.rpcClient->eth_getTransactionReceipt( txHash );
BOOST_REQUIRE_EQUAL( fixture.client->balanceAt( jsToAddress( etherbase ) ),
etherbaseBalance +
Expand Down Expand Up @@ -3718,6 +3719,7 @@ BOOST_AUTO_TEST_CASE( etherbase_generation2 ) {
txHash = fixture.rpcClient->eth_sendTransaction( retrieveTx );
BOOST_REQUIRE( !txHash.empty() );
dev::eth::mineTransaction( *( fixture.client ), 1 );
fixture.client->state().getOriginalDb()->createBlockSnap( 4 );
t = fixture.rpcClient->eth_getTransactionReceipt( txHash );
etherbaseBalance = fixture.client->balanceAt( jsToAddress( etherbase ) );
BOOST_REQUIRE_EQUAL( jsToU256( t["gasUsed"].asString() ) *
Expand Down

0 comments on commit 929e680

Please sign in to comment.