From 497daf5e3acbdcab43f47d3a66fbad9392e0c1e6 Mon Sep 17 00:00:00 2001 From: Matias Romeo Date: Tue, 10 Sep 2024 16:02:09 -0300 Subject: [PATCH] eth_call: perfom gas bailout in case from field is not specified --- silkworm/silkrpc/commands/eth_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/silkworm/silkrpc/commands/eth_api.cpp b/silkworm/silkrpc/commands/eth_api.cpp index 00b32b05..07947c73 100644 --- a/silkworm/silkrpc/commands/eth_api.cpp +++ b/silkworm/silkrpc/commands/eth_api.cpp @@ -1155,7 +1155,7 @@ awaitable EthereumRpcApi::handle_eth_call(const nlohmann::json& request, s const auto execution_result = co_await EVMExecutor::call( *chain_config_ptr, workers_, block_with_hash->block, txn, [&](auto& io_executor, auto block_num) { return tx->create_state(io_executor, db_reader, block_num); - }, gas_params, eos_evm_version, {}, true, false); + }, gas_params, eos_evm_version, {}, true, txn.from == evmc::address{0}); if (execution_result.success()) { make_glaze_json_content(reply, request["id"], execution_result.data);