Fixed witness path for circom

pull/5714/head^2
ioedeveloper 1 week ago committed by Aniket
parent 70d4d1967e
commit 97d08e94da
  1. 2
      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 }) const r1csBuffer = await plugin.call('fileManager', 'readFile', r1csPath, { encoding: null })
// @ts-ignore // @ts-ignore
const r1cs = new Uint8Array(r1csBuffer) 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 // @ts-ignore
const wtnsBuffer = await plugin.call('fileManager', 'readFile', wtnsPath, { encoding: null }) const wtnsBuffer = await plugin.call('fileManager', 'readFile', wtnsPath, { encoding: null })
// @ts-ignore // @ts-ignore

Loading…
Cancel
Save