From b60d8e1139b68d3349a3cb80cad8066b30f0deb9 Mon Sep 17 00:00:00 2001 From: Alexander Jung <104335080+AlexRamRam@users.noreply.github.com> Date: Fri, 7 Apr 2023 23:17:29 -0400 Subject: [PATCH] JSON RPC method eth_estimateGas is not supported - move to handle_static() Signed-off-by: Alexander Jung <104335080+AlexRamRam@users.noreply.github.com> --- src/3pc/agent/runners/evm/http_server.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }