Skip to content

Commit a60c433

Browse files
Merge PR: fix (#3306)
Co-authored-by: xiangjianmeng <[email protected]>
1 parent 88f26b4 commit a60c433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/rpc/namespaces/eth/api.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ func (api *PublicEthereumAPI) simDoCall(args rpctypes.CallArgs, cap uint64) (uin
11461146
}
11471147

11481148
// EstimateGas returns an estimate of gas usage for the given smart contract call.
1149-
func (api *PublicEthereumAPI) EstimateGas(args rpctypes.CallArgs, blockNrOrHash rpctypes.BlockNumberOrHash) (hexutil.Uint64, error) {
1149+
func (api *PublicEthereumAPI) EstimateGas(args rpctypes.CallArgs, blockNrOrHash *rpctypes.BlockNumberOrHash) (hexutil.Uint64, error) {
11501150
monitor := monitor.GetMonitor("eth_estimateGas", api.logger, api.Metrics).OnBegin()
11511151
defer monitor.OnEnd("args", args)
11521152
rateLimiter := api.GetRateLimiter("eth_estimateGas")
@@ -1715,7 +1715,7 @@ func (api *PublicEthereumAPI) generateFromArgs(args rpctypes.SendTxArgs) (*evmty
17151715
Value: args.Value,
17161716
Data: &input,
17171717
}
1718-
gl, err := api.EstimateGas(callArgs, rpctypes.BlockNumberOrHash{})
1718+
gl, err := api.EstimateGas(callArgs, nil)
17191719
if err != nil {
17201720
return nil, err
17211721
}

0 commit comments

Comments
 (0)