Skip to content

Commit b51f20c

Browse files
committed
JSON RPC method eth_estimateGas is not supported - move to handle_static()
Signed-off-by: Alexander Jung <[email protected]>
1 parent 887ccbe commit b51f20c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/3pc/agent/runners/evm/http_server.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,6 @@ namespace cbdc::threepc::agent::rpc {
8585
return handle_call(params, callback);
8686
}
8787

88-
if(method == "eth_estimateGas") {
89-
return handle_estimate_gas(params, callback);
90-
}
91-
9288
if(method == "eth_gasPrice") {
9389
return handle_gas_price(params, callback);
9490
}
@@ -168,6 +164,10 @@ namespace cbdc::threepc::agent::rpc {
168164
return handle_sha3(params, callback);
169165
}
170166

167+
if(method == "eth_estimateGas") {
168+
return handle_estimate_gas(params, callback);
169+
}
170+
171171
return std::nullopt;
172172
}
173173

0 commit comments

Comments
 (0)