Skip to content

Commit

Permalink
Fix CircuitValue.isConstant
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMinkov committed Jul 20, 2022
1 parent 1225452 commit fe55f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/circuit_value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T extends AnyConstructor>(
Expand Down

0 comments on commit fe55f6e

Please sign in to comment.