diff --git a/src/3pc/agent/runners/evm/http_server.cpp b/src/3pc/agent/runners/evm/http_server.cpp index 4b5636c67..e5fc36767 100644 --- a/src/3pc/agent/runners/evm/http_server.cpp +++ b/src/3pc/agent/runners/evm/http_server.cpp @@ -85,10 +85,6 @@ namespace cbdc::threepc::agent::rpc { return handle_call(params, callback); } - if(method == "eth_estimateGas") { - return handle_estimate_gas(params, callback); - } - if(method == "eth_gasPrice") { return handle_gas_price(params, callback); } @@ -168,6 +164,10 @@ namespace cbdc::threepc::agent::rpc { return handle_sha3(params, callback); } + if(method == "eth_estimateGas") { + return handle_estimate_gas(params, callback); + } + return std::nullopt; }