Skip to content

Commit

Permalink
fix tx args default
Browse files Browse the repository at this point in the history
  • Loading branch information
lwedge99 committed Nov 19, 2024
1 parent 71a9ce2 commit abf3256
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions eth/tracers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit abf3256

Please sign in to comment.