From f6a02d10217ea56ff299e2929814398210dc605c Mon Sep 17 00:00:00 2001 From: Amir Date: Mon, 12 Aug 2024 22:31:38 -0700 Subject: [PATCH] Fix tests --- packages/vm/src/buildBlock.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/vm/src/buildBlock.ts b/packages/vm/src/buildBlock.ts index 30bea1fa6d..82604b573d 100644 --- a/packages/vm/src/buildBlock.ts +++ b/packages/vm/src/buildBlock.ts @@ -365,12 +365,9 @@ export class BlockBuilder { } let block - if (consensusType === ConsensusType.ProofOfAuthority) { - const cs = this.blockOpts.cliqueSigner - if (cs === undefined) { - throw new Error('cliqueSigner must be included if consensus type being used is PoA') - } - block = createSealedCliqueBlock(blockData, this.blockOpts.cliqueSigner!, this.blockOpts) + const cs = this.blockOpts.cliqueSigner + if (cs !== undefined) { + block = createSealedCliqueBlock(blockData, cs, this.blockOpts) } else { block = createBlock(blockData, blockOpts) }