Skip to content

Commit

Permalink
fix(poseidon-proof): download snark artifacts when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
cedoor committed Nov 23, 2023
1 parent 7e5959e commit b1f019b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/poseidon-proof/src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export default async function generate(

if (!fs.existsSync(tmpPath)) {
tmp.dirSync({ name: tmpDir })
}

await download(defaultSnarkArtifacts.wasmFilePath, tmpPath)
await download(defaultSnarkArtifacts.zkeyFilePath, tmpPath)
await download(defaultSnarkArtifacts.wasmFilePath, tmpPath)
await download(defaultSnarkArtifacts.zkeyFilePath, tmpPath)
}

snarkArtifacts = {
wasmFilePath: `${tmpPath}/poseidon-proof.wasm`,
Expand Down

0 comments on commit b1f019b

Please sign in to comment.