Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
scorbajio committed Aug 12, 2024
1 parent b95ae39 commit aab9b6e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/block/test/clique.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit aab9b6e

Please sign in to comment.