From 97d08e94da7d0a0467dd47cec4b65b3aa3788389 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Sat, 15 Feb 2025 23:01:32 +0000 Subject: [PATCH] Fixed witness path for circom --- apps/circuit-compiler/src/app/actions/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/circuit-compiler/src/app/actions/index.ts b/apps/circuit-compiler/src/app/actions/index.ts index 894ef998b5..ef403fe541 100644 --- a/apps/circuit-compiler/src/app/actions/index.ts +++ b/apps/circuit-compiler/src/app/actions/index.ts @@ -117,7 +117,7 @@ export const generateProof = async (plugin: CircomPluginClient, appState: AppSta const r1csBuffer = await plugin.call('fileManager', 'readFile', r1csPath, { encoding: null }) // @ts-ignore const r1cs = new Uint8Array(r1csBuffer) - const wtnsPath = isElectron() ? extractParentFromKey(appState.filePath) + "/.bin/" + fileName.replace('.circom', '_js') + "/" + fileName.replace('.circom', '.wtn') : r1csPath.replace('.r1cs', '.wtn') + const wtnsPath = extractParentFromKey(appState.filePath) + "/.bin/" + fileName.replace('.circom', '_js') + "/" + fileName.replace('.circom', '.wtn') // @ts-ignore const wtnsBuffer = await plugin.call('fileManager', 'readFile', wtnsPath, { encoding: null }) // @ts-ignore