fix some tests

This commit is contained in:
Jared Wasinger 2025-10-04 14:42:15 +08:00
parent ebcabb7b3e
commit 5031b5f15b
2 changed files with 5 additions and 1 deletions

View file

@ -2156,6 +2156,10 @@ func (bc *BlockChain) ProcessBlock(parentRoot common.Hash, block *types.Block, s
}
ptime = time.Since(pstart)
// TODO: remove. gross. shouldn't have to manually call Finalise
// to pull in post-tx-execution state changes to the BAL here.
balTracer.Finalise()
// unset the BAL-creation tracer (dirty)
bc.cfg.VmConfig.Tracer = nil

View file

@ -226,7 +226,7 @@ func (t *BlockTest) Run(snapshotter bool, scheme string, witness bool, createAnd
for i := uint64(1); i <= chain.CurrentBlock().Number.Uint64(); i++ {
block := chain.GetBlockByNumber(i)
if block.Body().AccessList == nil {
return fmt.Errorf("block missing BAL")
return fmt.Errorf("block %d missing BAL", block.NumberU64())
}
blocksWithBAL = append(blocksWithBAL, block)
}