diff --git a/src/bn128.js b/src/bn128.js index eb1df3e..105ec81 100644 --- a/src/bn128.js +++ b/src/bn128.js @@ -66,7 +66,7 @@ class BN128 { // Set loopCountNeg if (this.loopCount.isNegative()) { - this.loopCount = this.neg(); + this.loopCount = this.loopCount.neg(); this.loopCountNeg = true; } else { this.loopCountNeg = false;