Fix typo in condition check for a curve type (#10240)

This commit is contained in:
Przemek Rzad 2024-03-05 17:56:02 +01:00 committed by GitHub
parent fe7f0e1861
commit a97dd7eaa1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,7 +89,7 @@ export function curveThreshold (curve: PalletReferendaCurve, input: BN, div: BN)
)
)
);
} else if (curve.asReciprocal) {
} else if (curve.isReciprocal) {
const { factor, xOffset, yOffset } = curve.asReciprocal;
const div = x.add(xOffset);