Skip to content

Commit

Permalink
Add missing L1CostFunc set (ethereum#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog authored Mar 14, 2023
1 parent 13ee9ab commit e95b13f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eth/tracers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ func (api *API) traceBlock(ctx context.Context, block *types.Block, config *Trac
signer = types.MakeSigner(api.backend.ChainConfig(), block.Number())
results = make([]*txTraceResult, len(txs))
)
blockCtx.L1CostFunc = types.NewL1CostFunc(api.backend.ChainConfig(), statedb)
for i, tx := range txs {
// Generate the next state snapshot fast without tracing
msg, _ := tx.AsMessage(signer, block.BaseFee())
Expand Down

0 comments on commit e95b13f

Please sign in to comment.