From 695df979b52e3135cc188218bfd38fa46503e899 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Mon, 23 Mar 2020 10:02:07 +0200 Subject: [PATCH] chore: add helper --- r1cs-std/src/test_constraint_counter.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/r1cs-std/src/test_constraint_counter.rs b/r1cs-std/src/test_constraint_counter.rs index 6fc4c72..78e6883 100644 --- a/r1cs-std/src/test_constraint_counter.rs +++ b/r1cs-std/src/test_constraint_counter.rs @@ -17,6 +17,10 @@ impl TestConstraintCounter { num_constraints: 0, } } + + pub fn num_constraints(&self) -> usize { + self.num_constraints + } } impl ConstraintSystem for TestConstraintCounter {