From 556a81ce6f50795cdaf01a57c127129ea2d39902 Mon Sep 17 00:00:00 2001 From: ledgerwatch Date: Sun, 11 Dec 2022 14:57:24 +0000 Subject: [PATCH] Fix tests (#6278) Co-authored-by: Alex Sharp --- core/state/intra_block_state_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/state/intra_block_state_test.go b/core/state/intra_block_state_test.go index e06c9a5f9..e05eca5b4 100644 --- a/core/state/intra_block_state_test.go +++ b/core/state/intra_block_state_test.go @@ -225,7 +225,7 @@ func (test *snapshotTest) run() bool { } defer tx.Rollback() var ( - ds = NewPlainState(tx, 1) + ds = NewPlainState(tx, 1, nil) state = New(ds) snapshotRevs = make([]int, len(test.snapshots)) sindex = 0 @@ -240,7 +240,7 @@ func (test *snapshotTest) run() bool { // Revert all snapshots in reverse order. Each revert must yield a state // that is equivalent to fresh state with all actions up the snapshot applied. for sindex--; sindex >= 0; sindex-- { - checkds := NewPlainState(tx, 1) + checkds := NewPlainState(tx, 1, nil) checkstate := New(checkds) for _, action := range test.actions[:test.snapshots[sindex]] { action.fn(action, checkstate)