Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scorbajio committed Aug 13, 2024
1 parent c981daf commit f6a02d1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/vm/src/buildBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit f6a02d1

Please sign in to comment.