Skip to content

Commit

Permalink
vm: fix 2935 test
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer committed Sep 13, 2024
1 parent fb67671 commit f272184
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit f272184

Please sign in to comment.