Skip to content

Commit

Permalink
JSON RPC method eth_estimateGas is not supported - move to handle_sta…
Browse files Browse the repository at this point in the history
…tic()

Signed-off-by: Alexander Jung <[email protected]>
  • Loading branch information
AlexRamRam committed Apr 8, 2023
1 parent 89037a0 commit b60d8e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/3pc/agent/runners/evm/http_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit b60d8e1

Please sign in to comment.