From 0958be79ce6cc0c582727f9359e31d4c83cca93b Mon Sep 17 00:00:00 2001 From: lwedge99 <116623885+lwedge99@users.noreply.github.com> Date: Wed, 27 Dec 2023 22:08:29 +0800 Subject: [PATCH] unlimited gas for debug_traceCallMany (#7) --- eth/tracers/api.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eth/tracers/api.go b/eth/tracers/api.go index e6bc59637392..edb42d64894a 100644 --- a/eth/tracers/api.go +++ b/eth/tracers/api.go @@ -1164,6 +1164,10 @@ func (api *API) traceBundle(ctx context.Context, bundle *Bundle, simulateContext // TODO currently only support one tx in bundle break } + if args.Gas == nil { + gasCap := api.backend.RPCGasCap() + args.Gas = (*hexutil.Uint64)(&gasCap) + } msg, err := args.ToMessage(api.backend.RPCGasCap(), block.BaseFee()) if err != nil { return nil, err