Skip to content

Commit ed27473

Browse files
committed
[kimchi] fix tests for permutation
1 parent 2b2fb34 commit ed27473

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

circuits/plonk-15-wires/src/gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ mod tests {
565565
println!("decoded gate: {:?}", decoded);
566566
prop_assert_eq!(cg.row, decoded.row);
567567
prop_assert_eq!(cg.typ, decoded.typ);
568-
for i in 0..COLUMNS {
568+
for i in 0..PERMUTS {
569569
prop_assert_eq!(cg.wires[i], decoded.wires[i]);
570570
}
571571
prop_assert_eq!(cg.c, decoded.c);

circuits/plonk-15-wires/src/nolookup/constraints.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ impl<F: FftField + SquareRootField> ConstraintSystem<F> {
583583

584584
for (row, gate) in self.gates.iter().enumerate() {
585585
// check if wires are connected
586-
for col in 0..COLUMNS {
586+
for col in 0..PERMUTS {
587587
let wire = gate.wires[col];
588588
if witness[col][row] != witness[wire.col][wire.row] {
589589
return Err(GateError::DisconnectedWires(

0 commit comments

Comments
 (0)