From 34685e17d4775c0cc0fc7c1a19f772e751d8131f Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 28 Jun 2024 11:11:46 +0000 Subject: [PATCH] Fix bls tests --- test/bls12-381.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bls12-381.test.js b/test/bls12-381.test.js index b414242..950362b 100644 --- a/test/bls12-381.test.js +++ b/test/bls12-381.test.js @@ -1485,7 +1485,7 @@ describe('bls12-381 deterministic', () => { should('G1', () => { for (const v of eip2537.G1) { const input = hexToBytes(v.Input); - const { x, y } = bls12_381.G1.mapToCurve(bytesToNumberBE(input)).toAffine(); + const { x, y } = bls12_381.G1.mapToCurve([bytesToNumberBE(input)]).toAffine(); const val = toEthHex(x) + toEthHex(y); deepStrictEqual(val, v.Expected); }