Skip to content

Commit 56f7a19

Browse files
committed
Fixed witness path for circom
1 parent fb9c20b commit 56f7a19

File tree

1 file changed

+1
-1
lines changed
  • apps/circuit-compiler/src/app/actions

1 file changed

+1
-1
lines changed

apps/circuit-compiler/src/app/actions/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const generateProof = async (plugin: CircomPluginClient, appState: AppSta
117117
const r1csBuffer = await plugin.call('fileManager', 'readFile', r1csPath, { encoding: null })
118118
// @ts-ignore
119119
const r1cs = new Uint8Array(r1csBuffer)
120-
const wtnsPath = isElectron() ? extractParentFromKey(appState.filePath) + "/.bin/" + fileName.replace('.circom', '_js') + "/" + fileName.replace('.circom', '.wtn') : r1csPath.replace('.r1cs', '.wtn')
120+
const wtnsPath = extractParentFromKey(appState.filePath) + "/.bin/" + fileName.replace('.circom', '_js') + "/" + fileName.replace('.circom', '.wtn')
121121
// @ts-ignore
122122
const wtnsBuffer = await plugin.call('fileManager', 'readFile', wtnsPath, { encoding: null })
123123
// @ts-ignore

0 commit comments

Comments
 (0)