Skip to content

Commit b487f6f

Browse files
authored
Merge pull request #407 from OffchainLabs/gascap-fix
Do not modify gas cap if already `0` (infinite)
2 parents ac98f8a + 6220ccf commit b487f6f

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)