Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: acolytec3 <konjou@gmail.com>
  • Loading branch information
holgerd77 and acolytec3 authored Jun 20, 2023
1 parent 9e3dd82 commit a7e9428
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block/src/header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class BlockHeader {
timestamp,
})
}
if (typeof setHardfork !== 'boolean') {
else if (typeof setHardfork !== 'boolean') {
this._common.setHardforkBy({
blockNumber: number,
td: setHardfork as BigIntLike,
Expand Down
2 changes: 1 addition & 1 deletion packages/vm/src/runBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export async function runBlock(this: VM, opts: RunBlockOpts): Promise<RunBlockRe
timestamp: block.header.timestamp,
})
}
if (typeof setHardforkUsed !== 'boolean') {
else if (typeof setHardforkUsed !== 'boolean') {
this._common.setHardforkBy({
blockNumber: block.header.number,
td: setHardforkUsed,
Expand Down

0 comments on commit a7e9428

Please sign in to comment.