From f27218468925be6e161ebeb730038a04ba776f04 Mon Sep 17 00:00:00 2001 From: Jochem Brouwer Date: Fri, 13 Sep 2024 18:08:44 +0200 Subject: [PATCH] vm: fix 2935 test --- .../vm/test/api/EIPs/eip-2935-historical-block-hashes.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/vm/test/api/EIPs/eip-2935-historical-block-hashes.spec.ts b/packages/vm/test/api/EIPs/eip-2935-historical-block-hashes.spec.ts index b95b7b58cf..7b97d3390f 100644 --- a/packages/vm/test/api/EIPs/eip-2935-historical-block-hashes.spec.ts +++ b/packages/vm/test/api/EIPs/eip-2935-historical-block-hashes.spec.ts @@ -178,6 +178,8 @@ describe('EIP 2935: historical block hashes', () => { validateConsensus: false, }) const vm = await createVM({ common: commonGenesis, blockchain }) + // Ensure 2935 system code exists + await vm.stateManager.putCode(historyAddress, contract2935Code) commonGenesis.setHardforkBy({ timestamp: 1, }) @@ -216,6 +218,8 @@ describe('EIP 2935: historical block hashes', () => { validateConsensus: false, }) const vm = await createVM({ common, blockchain }) + // Ensure 2935 system code exists + await vm.stateManager.putCode(historyAddress, contract2935Code) let lastBlock = (await vm.blockchain.getBlock(0)) as Block for (let i = 1; i <= blocksToBuild; i++) { lastBlock = await (