Skip to content

Commit

Permalink
unlimited gas for debug_traceCallMany (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwedge99 committed Feb 1, 2024
1 parent b842ea9 commit 0958be7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eth/tracers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0958be7

Please sign in to comment.