From 12ac120fcad4f51caf31ac865f7a9047b75dd2d1 Mon Sep 17 00:00:00 2001 From: laizy Date: Wed, 29 Nov 2023 20:27:22 +0800 Subject: [PATCH] add an optional param for estimate gas (#1435) --- http/ethrpc/eth/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/ethrpc/eth/api.go b/http/ethrpc/eth/api.go index ddbd1c43e..5b9934f7f 100644 --- a/http/ethrpc/eth/api.go +++ b/http/ethrpc/eth/api.go @@ -315,7 +315,7 @@ type revertError struct { reason string // revert reason hex encoded } -func (api *EthereumAPI) EstimateGas(args types2.CallArgs) (hexutil.Uint64, error) { +func (api *EthereumAPI) EstimateGas(args types2.CallArgs, _ *rpc.BlockNumberOrHash) (hexutil.Uint64, error) { var ( lo uint64 = params.TxGas hi uint64