Skip to content

Commit

Permalink
add an optional param for estimate gas
Browse files Browse the repository at this point in the history
  • Loading branch information
laizy committed Nov 29, 2023
1 parent c52459e commit 55acdb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/ethrpc/eth/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55acdb0

Please sign in to comment.