From 94faeaf0b288bc4fc41bcdc358f101450d43c118 Mon Sep 17 00:00:00 2001 From: mmagician Date: Sat, 13 Jul 2024 17:44:12 +0200 Subject: [PATCH] provide full paths to wasm location --- src/zkey.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/zkey.rs b/src/zkey.rs index 1df9cc4..d44283c 100644 --- a/src/zkey.rs +++ b/src/zkey.rs @@ -850,7 +850,7 @@ mod tests { let (params, _matrices) = read_zkey(&mut file).unwrap(); // binfile.proving_key().unwrap(); let cfg = CircomConfig::::new( - "./test-vectors/mycircuit.wasm", + "./test-vectors/mycircuit_js/mycircuit.wasm", "./test-vectors/mycircuit.r1cs", ) .unwrap(); @@ -878,7 +878,9 @@ mod tests { let mut file = File::open(path).unwrap(); let (params, matrices) = read_zkey(&mut file).unwrap(); let mut store = Store::default(); - let mut wtns = WitnessCalculator::new(&mut store, "./test-vectors/mycircuit.wasm").unwrap(); + let mut wtns = + WitnessCalculator::new(&mut store, "./test-vectors/mycircuit_js/mycircuit.wasm") + .unwrap(); let mut inputs: HashMap> = HashMap::new(); let values = inputs.entry("a".to_string()).or_insert_with(Vec::new); values.push(3.into());