Skip to content

Commit

Permalink
[kimchi] fix tests for permutation
Browse files Browse the repository at this point in the history
  • Loading branch information
mimoo committed Oct 20, 2021
1 parent 2b2fb34 commit ed27473
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion circuits/plonk-15-wires/src/gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ mod tests {
println!("decoded gate: {:?}", decoded);
prop_assert_eq!(cg.row, decoded.row);
prop_assert_eq!(cg.typ, decoded.typ);
for i in 0..COLUMNS {
for i in 0..PERMUTS {
prop_assert_eq!(cg.wires[i], decoded.wires[i]);
}
prop_assert_eq!(cg.c, decoded.c);
Expand Down
2 changes: 1 addition & 1 deletion circuits/plonk-15-wires/src/nolookup/constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ impl<F: FftField + SquareRootField> ConstraintSystem<F> {

for (row, gate) in self.gates.iter().enumerate() {
// check if wires are connected
for col in 0..COLUMNS {
for col in 0..PERMUTS {
let wire = gate.wires[col];
if witness[col][row] != witness[wire.col][wire.row] {
return Err(GateError::DisconnectedWires(
Expand Down

0 comments on commit ed27473

Please sign in to comment.