From 669d49a13ec6f1f1f3fdb30a8571652831c44978 Mon Sep 17 00:00:00 2001 From: CedarMist <134699267+CedarMist@users.noreply.github.com> Date: Sun, 26 Nov 2023 19:36:25 +0000 Subject: [PATCH] contracts: hashing tests weren't running, which meant sha384 error wasn't caught --- contracts/contracts/Sapphire.sol | 2 +- contracts/test/hashes.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/contracts/Sapphire.sol b/contracts/contracts/Sapphire.sol index 1099cc4c..785c501a 100644 --- a/contracts/contracts/Sapphire.sol +++ b/contracts/contracts/Sapphire.sol @@ -34,7 +34,7 @@ library Sapphire { address internal constant SHA512 = 0x0100000000000000000000000000000000000102; address internal constant SHA384 = - 0x0100000000000000000000000000000000000103; + 0x0100000000000000000000000000000000000104; type Curve25519PublicKey is bytes32; type Curve25519SecretKey is bytes32; diff --git a/contracts/test/hashes.ts b/contracts/test/hashes.ts index b4d524eb..2b6247e9 100644 --- a/contracts/test/hashes.ts +++ b/contracts/test/hashes.ts @@ -32,14 +32,14 @@ describe('Hashes', () => { } it('SHA512-256', async () => { - testHashes('SHA512-256', contract.testSHA512_256.bind(contract)); + await testHashes('SHA512-256', contract.testSHA512_256.bind(contract)); }); it('SHA512', async () => { - testHashes('SHA512', contract.testSHA512.bind(contract)); + await testHashes('SHA512', contract.testSHA512.bind(contract)); }); it('SHA384', async () => { - testHashes('SHA384', contract.testSHA384.bind(contract)); + await testHashes('SHA384', contract.testSHA384.bind(contract)); }); });