Skip to content

Commit

Permalink
fix block type check
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Jan 10, 2023
1 parent 4067266 commit fe7c53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const setup = async (argv: Config) => {
let blockHash: string
if (argv.block == null) {
blockHash = await api.getBlockHash()
} else if (Number.isInteger(argv.block)) {
} else if (Number.isInteger(+argv.block)) {
blockHash = await api.getBlockHash(Number(argv.block))
} else {
blockHash = argv.block as string
Expand Down

0 comments on commit fe7c53e

Please sign in to comment.