From 09624d5d6b4ce1e593c6e9d35ae5633dee067029 Mon Sep 17 00:00:00 2001 From: Dima Litvinov Date: Fri, 24 May 2024 15:56:37 +0100 Subject: [PATCH] Fix test --- test/unittests/libweb3jsonrpc/jsonrpc.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/test/unittests/libweb3jsonrpc/jsonrpc.cpp b/test/unittests/libweb3jsonrpc/jsonrpc.cpp index b174aab40..c2e286854 100644 --- a/test/unittests/libweb3jsonrpc/jsonrpc.cpp +++ b/test/unittests/libweb3jsonrpc/jsonrpc.cpp @@ -872,15 +872,6 @@ BOOST_AUTO_TEST_CASE( simple_contract ) { BOOST_CHECK_EQUAL( result, "0x0000000000000000000000000000000000000000000000000000000000000007" ); - Json::Value inputCall; - inputCall["to"] = contractAddress; - inputCall["data"] = "0xb3de648b0000000000000000000000000000000000000000000000000000000000000001"; - inputCall["gas"] = "1000000"; - inputCall["gasPrice"] = "0"; - result = fixture.rpcClient->eth_call( inputCall, "latest" ); - BOOST_CHECK_EQUAL( - result, "0x0000000000000000000000000000000000000000000000000000000000000007" ); - } /* @@ -2131,7 +2122,7 @@ contract TestEstimateGas { dev::bytes data = dev::jsToBytes( estimateGasCall["data"].asString() ); BOOST_REQUIRE( dev::jsToU256( estimatedGas ) > dev::eth::TransactionBase::baseGasRequired( - false, &data, EVMSchedule() ) ); + false, &data, fixture.chainParams.scheduleForBlockNumber(1) ) ); // try to send with this gas estimateGasCall["gas"] = toJS( jsToInt( estimatedGas ) );