Skip to content

Commit

Permalink
Merge pull request #1304 from GaetanoMondelli/fix-genLocalState-parse…
Browse files Browse the repository at this point in the history
…-option

fix: for genLocalState '-o' represents the path where to write the local state and not the pollId and must be be parsed as int.
  • Loading branch information
ctrlc03 authored Mar 20, 2024
2 parents 950e865 + 3326d4a commit 20e80b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ program
program
.command("genLocalState")
.description("generate a local MACI state from the smart contracts events")
.requiredOption("-o, --output <outputPath>", "the path where to write the state", parseInt)
.requiredOption("-o, --output <outputPath>", "the path where to write the state")
.requiredOption("-p, --poll-id <pollId>", "the id of the poll", BigInt)
.option("-x, --contract <contract>", "the MACI contract address")
.option("-sk, --privkey <privkey>", "your serialized MACI private key")
Expand Down

0 comments on commit 20e80b7

Please sign in to comment.