From 13d00642196f9c993ab049a8a100dd606dd68f6c Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 5 Nov 2024 23:05:43 -0800 Subject: [PATCH] Fix test vector constant references. --- test/import-wallet.test.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 () => { -- 2.34.1