From aab9b6e18386f41d4ecb7c4599cd672bc92f09e6 Mon Sep 17 00:00:00 2001 From: Amir Date: Mon, 12 Aug 2024 14:35:21 -0700 Subject: [PATCH] Fix test --- packages/block/test/clique.spec.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/block/test/clique.spec.ts b/packages/block/test/clique.spec.ts index db24821fad..23ad345b01 100644 --- a/packages/block/test/clique.spec.ts +++ b/packages/block/test/clique.spec.ts @@ -2,7 +2,7 @@ import { Common, Goerli, Hardfork } from '@ethereumjs/common' import { Address, createZeroAddress, hexToBytes } from '@ethereumjs/util' import { assert, describe, it } from 'vitest' -import { createBlockHeader } from '../src/constructors.js' +import { createBlockHeader, createSealedCliqueBlockHeader } from '../src/constructors.js' import { cliqueEpochTransitionSigners, cliqueExtraSeal, @@ -97,9 +97,10 @@ describe('[Header]: Clique PoA Functionality', () => { it('Signing', () => { const cliqueSignerKey = A.privateKey - let header = createBlockHeader( + let header = createSealedCliqueBlockHeader( { number: 1, extraData: new Uint8Array(97) }, - { common, freeze: false, cliqueSigner: cliqueSignerKey }, + cliqueSignerKey, + { common, freeze: false }, ) assert.equal(header.extraData.length, 97)