Skip to content

Commit

Permalink
Fix bls tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jun 28, 2024
1 parent 5fcd71a commit 34685e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/bls12-381.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 34685e1

Please sign in to comment.