Skip to content

Commit 6220ccf

Browse files
committed
Do not modify gas cap if already 0 (infinite)
1 parent ac98f8a commit 6220ccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ethapi/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args TransactionArgs, blockNr
13031303
call := args.ToMessage(header.BaseFee, gasCap, header, state, core.MessageGasEstimationMode)
13041304

13051305
// Arbitrum: raise the gas cap to ignore L1 costs so that it's compute-only
1306-
{
1306+
if gasCap > 0 {
13071307
postingGas, err := core.RPCPostingGasHook(call, header, state)
13081308
if err != nil {
13091309
return 0, err

0 commit comments

Comments
 (0)