Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
scorbajio committed Aug 13, 2024
1 parent 8d53ea0 commit 6048d8f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/vm/test/api/buildBlock.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { cliqueSigner, cliqueVerifySignature, createBlock } from '@ethereumjs/block'
import {
cliqueSigner,
cliqueVerifySignature,
createBlock,
createSealedCliqueBlock,
} from '@ethereumjs/block'
import { EthashConsensus, createBlockchain } from '@ethereumjs/blockchain'
import {
Common,
Expand Down Expand Up @@ -199,9 +204,10 @@ describe('BlockBuilder', () => {
// extraData: [vanity, activeSigner, seal]
const extraData = concatBytes(new Uint8Array(32), signer.address.toBytes(), new Uint8Array(65))
const cliqueSignerKey = signer.privateKey
const genesisBlock = createBlock(
const genesisBlock = createSealedCliqueBlock(
{ header: { gasLimit: 50000, extraData } },
{ common, cliqueSigner: cliqueSignerKey },
cliqueSignerKey,
{ common },
)
const blockchain = await createBlockchain({ genesisBlock, common })
const vm = await VM.create({ common, blockchain })
Expand Down

0 comments on commit 6048d8f

Please sign in to comment.