From: Chris Duncan Date: Wed, 6 Nov 2024 07:05:43 +0000 (-0800) Subject: Fix test vector constant references. X-Git-Tag: v0.0.19~2 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=13d00642196f9c993ab049a8a100dd606dd68f6c;p=libnemo.git Fix test vector constant references. --- diff --git a/test/import-wallet.test.mjs b/test/import-wallet.test.mjs index 413c5a1..960c70f 100644 --- a/test/import-wallet.test.mjs +++ b/test/import-wallet.test.mjs @@ -139,7 +139,7 @@ describe('import wallet with test vectors test', () => { it('should successfully import a BLAKE2b wallet with Trezor test vectors', async () => { const wallet = await Blake2bWallet.fromMnemonic(TREZOR_TEST_VECTORS.PASSWORD, TREZOR_TEST_VECTORS.MNEMONIC_1) - await wallet.unlock(NANO_TEST_VECTORS.PASSWORD) + await wallet.unlock(TREZOR_TEST_VECTORS.PASSWORD) const accounts = await wallet.accounts() assert.ok('mnemonic' in wallet) @@ -147,9 +147,9 @@ describe('import wallet with test vectors test', () => { assert.ok(accounts[0] instanceof Account) assert.equal(wallet.mnemonic, TREZOR_TEST_VECTORS.MNEMONIC_1) assert.equal(wallet.seed, TREZOR_TEST_VECTORS.ENTROPY_1) - assert.equal(accounts[0].privateKey, NANO_TEST_VECTORS.NANOS_CC_PRIVATE_1) - assert.equal(accounts[0].publicKey, NANO_TEST_VECTORS.NANOS_CC_PUBLIC_1) - assert.equal(accounts[0].address, NANO_TEST_VECTORS.NANOS_CC_ADDRESS_1) + assert.equal(accounts[0].privateKey, TREZOR_TEST_VECTORS.NANOS_CC_PRIVATE_1) + assert.equal(accounts[0].publicKey, TREZOR_TEST_VECTORS.NANOS_CC_PUBLIC_1) + assert.equal(accounts[0].address, TREZOR_TEST_VECTORS.NANOS_CC_ADDRESS_1) }) it('should get identical BLAKE2b wallets when created with a seed versus with its derived mnemonic', async () => {