From b9fb1cf3dda63422a4275a467d0a7699c2bdc974 Mon Sep 17 00:00:00 2001 From: yarkin Date: Thu, 7 Nov 2024 12:56:58 +0800 Subject: [PATCH] call_eth no longer need the set the max_fee_per_gas --- silkworm/silkrpc/commands/eth_api.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/silkworm/silkrpc/commands/eth_api.cpp b/silkworm/silkrpc/commands/eth_api.cpp index 6a424eea..07947c73 100644 --- a/silkworm/silkrpc/commands/eth_api.cpp +++ b/silkworm/silkrpc/commands/eth_api.cpp @@ -1148,11 +1148,6 @@ awaitable EthereumRpcApi::handle_eth_call(const nlohmann::json& request, s silkworm::Transaction txn{call.to_transaction()}; if(!txn.from.has_value()) txn.from = evmc::address{0}; - auto base_fee_per_gas = block_with_hash->block.header.base_fee_per_gas.value_or(0); - if(txn.max_fee_per_gas == 0 && base_fee_per_gas > 0) { - txn.max_fee_per_gas = base_fee_per_gas; - } - const auto [eos_evm_version, gas_params] = co_await load_gas_parameters(tx_database, chain_config_ptr, block_with_hash->block); const core::rawdb::DatabaseReader& db_reader =