Skip to content

Commit

Permalink
Merge pull request #269 from 0xjei/fix/setup
Browse files Browse the repository at this point in the history
Missing path update when using a pre-computed zkey
  • Loading branch information
0xjei authored Jan 16, 2023
2 parents b607c1e + 4c66929 commit 144f702
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/phase2cli/src/commands/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,10 @@ const setup = async () => {
)

// Rename to first zkey filename.
renameSync(`${cwd}/${preComputedZkeyNameWithExt}`, `${circuit.prefix}_00000.zkey`)
renameSync(`${cwd}/${preComputedZkeyNameWithExt}`, firstZkeyFileName)

// Update local path.
zkeyLocalPathAndFileName = `${cwd}/${firstZkeyFileName}`
} else {
spinner.fail(`Something went wrong during the verification of your pre-computed zKey`)

Expand Down

0 comments on commit 144f702

Please sign in to comment.