From 6220ccf21012f2efbd9fa4f1e5953852cc97acb2 Mon Sep 17 00:00:00 2001 From: Joshua Colvin Date: Wed, 5 Feb 2025 15:03:44 -0700 Subject: [PATCH] Do not modify gas cap if already `0` (infinite) --- internal/ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 7bcdcf57e..ca25c6184 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -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