Skip to content

Commit 65bbf17

Browse files
committed
Parse startBlockFlag only if defined
1 parent 984cf70 commit 65bbf17

File tree

1 file changed

+1
-1
lines changed
  • packages/cli/src/commands

1 file changed

+1
-1
lines changed

packages/cli/src/commands/add.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default class AddCommand extends Command {
8181

8282
if (isLocalHost) this.warn('`localhost` network detected, prompting user for inputs');
8383

84-
let startBlock = parseInt(startBlockFlag ?? '').toString();
84+
let startBlock = startBlockFlag ? parseInt(startBlockFlag).toString() : startBlockFlag;
8585
let contractName = contractNameFlag;
8686

8787
let ethabi = null;

0 commit comments

Comments
 (0)