]> zoso.dev Git - libnemo.git/commitdiff
Fix test vector constant references.
authorChris Duncan <chris@zoso.dev>
Wed, 6 Nov 2024 07:05:43 +0000 (23:05 -0800)
committerChris Duncan <chris@zoso.dev>
Wed, 6 Nov 2024 07:05:43 +0000 (23:05 -0800)
test/import-wallet.test.mjs

index 413c5a154ecd7c1ac5fc5cb9d767773611fd3f18..960c70f480cabbd98ed2b3d139d7aee61e229bf1 100644 (file)
@@ -139,7 +139,7 @@ describe('import wallet with test vectors test', () => {
 \r
        it('should successfully import a BLAKE2b wallet with Trezor test vectors', async () => {\r
                const wallet = await Blake2bWallet.fromMnemonic(TREZOR_TEST_VECTORS.PASSWORD, TREZOR_TEST_VECTORS.MNEMONIC_1)\r
-               await wallet.unlock(NANO_TEST_VECTORS.PASSWORD)\r
+               await wallet.unlock(TREZOR_TEST_VECTORS.PASSWORD)\r
                const accounts = await wallet.accounts()\r
 \r
                assert.ok('mnemonic' in wallet)\r
@@ -147,9 +147,9 @@ describe('import wallet with test vectors test', () => {
                assert.ok(accounts[0] instanceof Account)\r
                assert.equal(wallet.mnemonic, TREZOR_TEST_VECTORS.MNEMONIC_1)\r
                assert.equal(wallet.seed, TREZOR_TEST_VECTORS.ENTROPY_1)\r
-               assert.equal(accounts[0].privateKey, NANO_TEST_VECTORS.NANOS_CC_PRIVATE_1)\r
-               assert.equal(accounts[0].publicKey, NANO_TEST_VECTORS.NANOS_CC_PUBLIC_1)\r
-               assert.equal(accounts[0].address, NANO_TEST_VECTORS.NANOS_CC_ADDRESS_1)\r
+               assert.equal(accounts[0].privateKey, TREZOR_TEST_VECTORS.NANOS_CC_PRIVATE_1)\r
+               assert.equal(accounts[0].publicKey, TREZOR_TEST_VECTORS.NANOS_CC_PUBLIC_1)\r
+               assert.equal(accounts[0].address, TREZOR_TEST_VECTORS.NANOS_CC_ADDRESS_1)\r
        })\r
 \r
        it('should get identical BLAKE2b wallets when created with a seed versus with its derived mnemonic', async () => {\r