From abf3256a5f8cd1b4c4bcd7d82558549c0c3c49ba Mon Sep 17 00:00:00 2001 From: lwedge99 <116623885+lwedge99@users.noreply.github.com> Date: Tue, 19 Nov 2024 13:18:06 +0800 Subject: [PATCH] fix tx args default --- eth/tracers/api.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/eth/tracers/api.go b/eth/tracers/api.go index d6bde13399..753c07305f 100644 --- a/eth/tracers/api.go +++ b/eth/tracers/api.go @@ -1229,9 +1229,8 @@ func (api *API) traceBundle(ctx context.Context, bundle *Bundle, simulateContext } // Execute the trace for idx, args := range bundle.Transactions { - if args.Gas == nil { - gasCap := api.backend.RPCGasCap() - args.Gas = (*hexutil.Uint64)(&gasCap) + if err := args.CallDefaults(api.backend.RPCGasCap(), vmctx.BaseFee, api.backend.ChainConfig().ChainID); err != nil { + return nil, err } msg := args.ToMessage(block.BaseFee()) tx := args.ToTransaction()