Skip to content

Commit

Permalink
client: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer committed Mar 28, 2023
1 parent eacee53 commit 572aaa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/client/test/miner/miner.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Block, BlockHeader } from '@ethereumjs/block'
import { Common, Chain as CommonChain, Hardfork } from '@ethereumjs/common'
import { VmState } from '@ethereumjs/evm'
import { DefaultStateManager } from '@ethereumjs/statemanager'
import { FeeMarketEIP1559Transaction, Transaction } from '@ethereumjs/tx'
import { Address } from '@ethereumjs/util'
import { VmState } from '@ethereumjs/vm/dist/eei/vmState'
import { AbstractLevel } from 'abstract-level'
import { keccak256 } from 'ethereum-cryptography/keccak'
import * as tape from 'tape'
Expand Down Expand Up @@ -49,7 +49,7 @@ tape('[Miner]', async (t) => {

const originalSetStateRoot = VmState.prototype.setStateRoot
VmState.prototype.setStateRoot = td.func<any>()
td.replace('@ethereumjs/vm/dist/vmState', { VmState })
td.replace('@ethereumjs/evm', { VmState })

// Stub out setStateRoot so txPool.validate checks will pass since correct state root
// doesn't exist in fakeChain state anyway
Expand Down
4 changes: 2 additions & 2 deletions packages/client/test/miner/pendingBlock.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Block, BlockHeader } from '@ethereumjs/block'
import { Common, Chain as CommonChain, Hardfork } from '@ethereumjs/common'
import { VmState } from '@ethereumjs/evm'
import { BlobEIP4844Transaction, Transaction, initKZG } from '@ethereumjs/tx'
import {
blobsToCommitments,
Expand All @@ -8,7 +9,6 @@ import {
} from '@ethereumjs/tx/dist/utils/blobHelpers'
import { Account, Address, bufferToHex } from '@ethereumjs/util'
import { VM } from '@ethereumjs/vm'
import { VmState } from '@ethereumjs/vm/dist/eei/vmState'
import * as kzg from 'c-kzg'
import { randomBytes } from 'crypto'
import * as tape from 'tape'
Expand Down Expand Up @@ -78,7 +78,7 @@ tape('[PendingBlock]', async (t) => {

const originalSetStateRoot = VmState.prototype.setStateRoot
VmState.prototype.setStateRoot = td.func<any>()
td.replace('@ethereumjs/vm/dist/vmState', { VmState })
td.replace('@ethereumjs/evm', { VmState })

const createTx = (
from = A,
Expand Down

0 comments on commit 572aaa4

Please sign in to comment.