diff --git a/src/r1cs.rs b/src/r1cs.rs index b0083d9..115b2e6 100644 --- a/src/r1cs.rs +++ b/src/r1cs.rs @@ -83,7 +83,7 @@ impl R1CSShape { num_io: usize, M: &[(usize, usize, G::Scalar)]| -> Result<(), NovaError> { - let res = (0..num_cons) + let res = (0..M.len()) .map(|i| { let (row, col, _val) = M[i]; if row >= num_cons || col > num_io + num_vars {