This commit is contained in:
wborgeaud 2021-06-23 14:22:42 +02:00
parent 6c864ca522
commit 8ae664d94f
2 changed files with 3 additions and 4 deletions

View File

@ -385,8 +385,6 @@ mod tests {
let x = FF::rand();
let y = FF::rand();
let x = FF::TWO;
let y = FF::ONE;
let z = x / y;
let xt = builder.constant_extension(x);
let yt = builder.constant_extension(y);

View File

@ -1,4 +1,5 @@
use std::collections::HashMap;
use std::convert::TryInto;
use anyhow::{ensure, Result};
@ -139,8 +140,8 @@ impl<F: Field> PartialWitness<F> {
let vb = self.target_values.get(&b).copied().unwrap_or(F::ZERO);
ensure!(
va == vb,
"Copy constraint between wire {} of gate #{} (`{}`) and wire {} of gate #{} (`{}`) is not satisfied.\
Got values of {} and {} respectively.",
"Copy constraint between wire {} of gate #{} (`{}`) and wire {} of gate #{} (`{}`) is not satisfied. \
Got values of {} and {} respectively.",
wa.input, wa.gate, gate_instances[wa.gate].gate_type.0.id(), wb.input, wb.gate,
gate_instances[wb.gate].gate_type.0.id(), va, vb);
}