From fe55f6eee26a07072291c31ba768cc68a0741824 Mon Sep 17 00:00:00 2001 From: Martin Minkov Date: Wed, 20 Jul 2022 11:27:38 -0700 Subject: [PATCH] Fix CircuitValue.isConstant --- src/lib/circuit_value.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/circuit_value.ts b/src/lib/circuit_value.ts index b8b526dc4d..cb24ba93c5 100644 --- a/src/lib/circuit_value.ts +++ b/src/lib/circuit_value.ts @@ -77,8 +77,8 @@ abstract class CircuitValue { Circuit.assertEqual(this, x); } - isConstant(x: this) { - return x.toFields().every((x) => x.isConstant()); + isConstant() { + return this.toFields().every((x) => x.isConstant()); } static ofFields(