Skip to content

Commit

Permalink
fix(setup): fix issue with wasm file always being deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Nov 13, 2023
1 parent b9e05e4 commit f11504f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/actions/src/helpers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,10 @@ export const parseCeremonyFile = async (path: string, cleanup: boolean = false):
circuits.push(circuit)

// remove the local r1cs and wasm downloads (if used for verifying the config only vs setup)
if (cleanup) fs.unlinkSync(localR1csPath)
fs.unlinkSync(localWasmPath)
if (cleanup) {
fs.unlinkSync(localR1csPath)
fs.unlinkSync(localWasmPath)
}
}

const setupData: SetupCeremonyData = {
Expand Down

0 comments on commit f11504f

Please sign in to comment.