Skip to content

Commit

Permalink
Fix missing public input gate
Browse files Browse the repository at this point in the history
  • Loading branch information
akoptelov committed Oct 2, 2023
1 parent 373a294 commit ff0e8f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kimchi/src/snarky/constraint_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ impl<Field: PrimeField> SnarkyConstraintSystem<Field> {
Field::zero(),
];
let mut public_gates = Vec::new();
for row in 0..(public_input_size - 1) {
for row in 0..public_input_size {
let public_var = V::External(row + 1);
self.wire_(public_var, Row::PublicInput(row), 0);
public_gates.push(GateSpec {
Expand Down

0 comments on commit ff0e8f3

Please sign in to comment.