File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1146,7 +1146,7 @@ func (api *PublicEthereumAPI) simDoCall(args rpctypes.CallArgs, cap uint64) (uin
1146
1146
}
1147
1147
1148
1148
// 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 ) {
1150
1150
monitor := monitor .GetMonitor ("eth_estimateGas" , api .logger , api .Metrics ).OnBegin ()
1151
1151
defer monitor .OnEnd ("args" , args )
1152
1152
rateLimiter := api .GetRateLimiter ("eth_estimateGas" )
@@ -1715,7 +1715,7 @@ func (api *PublicEthereumAPI) generateFromArgs(args rpctypes.SendTxArgs) (*evmty
1715
1715
Value : args .Value ,
1716
1716
Data : & input ,
1717
1717
}
1718
- gl , err := api .EstimateGas (callArgs , rpctypes. BlockNumberOrHash {} )
1718
+ gl , err := api .EstimateGas (callArgs , nil )
1719
1719
if err != nil {
1720
1720
return nil , err
1721
1721
}
You can’t perform that action at this time.
0 commit comments