From f11504f772c61c052994da69b42f9266ce0e05be Mon Sep 17 00:00:00 2001 From: ctrlc03 <93448202+ctrlc03@users.noreply.github.com> Date: Mon, 13 Nov 2023 11:08:53 +0000 Subject: [PATCH] fix(setup): fix issue with wasm file always being deleted --- packages/actions/src/helpers/utils.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/actions/src/helpers/utils.ts b/packages/actions/src/helpers/utils.ts index 03e7b2e3..fcde7ac6 100644 --- a/packages/actions/src/helpers/utils.ts +++ b/packages/actions/src/helpers/utils.ts @@ -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 = {