Skip to content

Commit

Permalink
Merge pull request #407 from OffchainLabs/gascap-fix
Browse files Browse the repository at this point in the history
Do not modify gas cap if already `0` (infinite)
  • Loading branch information
tsahee authored Feb 5, 2025
2 parents ac98f8a + 6220ccf commit b487f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args TransactionArgs, blockNr
call := args.ToMessage(header.BaseFee, gasCap, header, state, core.MessageGasEstimationMode)

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

0 comments on commit b487f6f

Please sign in to comment.