From 93499b3f34f47000459eae51deab39a8fd69f7b8 Mon Sep 17 00:00:00 2001 From: dapplion Date: Wed, 2 Dec 2020 23:33:44 +0000 Subject: [PATCH] Fix class method usage --- test/unit/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/index.test.ts b/test/unit/index.test.ts index 47d6074..b9e16a0 100644 --- a/test/unit/index.test.ts +++ b/test/unit/index.test.ts @@ -119,9 +119,9 @@ export function runIndexTests(bls: IBls): void { }); it("Test fails correctly against a malicous signature", async () => { - const pks = maliciousVerifyMultipleSignaturesData.pks.map(bls.PublicKey.fromHex); + const pks = maliciousVerifyMultipleSignaturesData.pks.map((pk) => bls.PublicKey.fromHex(pk)); const msgs = maliciousVerifyMultipleSignaturesData.msgs.map(hexToBytes); - const sigs = maliciousVerifyMultipleSignaturesData.sigs.map(bls.Signature.fromHex); + const sigs = maliciousVerifyMultipleSignaturesData.sigs.map((sig) => bls.Signature.fromHex(sig)); maliciousVerifyMultipleSignaturesData.manipulated.forEach((isManipulated, i) => { expect(sigs[i].verify(pks[i], msgs[i])).to.equal(