Skip to content

Commit

Permalink
provide full paths to wasm location
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagician committed Jul 13, 2024
1 parent 79a070f commit 94faeaf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/zkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ mod tests {
let (params, _matrices) = read_zkey(&mut file).unwrap(); // binfile.proving_key().unwrap();

let cfg = CircomConfig::<Bn254>::new(
"./test-vectors/mycircuit.wasm",
"./test-vectors/mycircuit_js/mycircuit.wasm",
"./test-vectors/mycircuit.r1cs",
)
.unwrap();
Expand Down Expand Up @@ -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<String, Vec<num_bigint::BigInt>> = HashMap::new();
let values = inputs.entry("a".to_string()).or_insert_with(Vec::new);
values.push(3.into());
Expand Down

0 comments on commit 94faeaf

Please sign in to comment.