Skip to content

Commit

Permalink
eth_call: perfom gas bailout in case from field is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
elmato committed Sep 10, 2024
1 parent abdbd05 commit 497daf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silkworm/silkrpc/commands/eth_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ awaitable<void> 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);
Expand Down

0 comments on commit 497daf5

Please sign in to comment.