]> git.codecow.com Git - libnemo.git/commitdiff
Call single account from test and uncomment tests.
authorChris Duncan <chris@zoso.dev>
Wed, 16 Jul 2025 03:03:41 +0000 (20:03 -0700)
committerChris Duncan <chris@zoso.dev>
Wed, 16 Jul 2025 03:03:41 +0000 (20:03 -0700)
test/test.main.mjs
test/test.tools.mjs

index bca4fc5fd52bffd19b9bc0ca9994839a0936ba32..90f764482ce76a841260bac3a6225b97f7470dc4 100644 (file)
@@ -1,14 +1,14 @@
 // SPDX-FileCopyrightText: 2025 Chris Duncan <chris@zoso.dev>
 // SPDX-License-Identifier: GPL-3.0-or-later
 
-// import './test.blake2b.mjs'
-// import './test.calculate-pow.mjs'
-// import './test.create-wallet.mjs'
-// import './test.derive-accounts.mjs'
-// import './test.import-wallet.mjs'
+import './test.blake2b.mjs'
+import './test.calculate-pow.mjs'
+import './test.create-wallet.mjs'
+import './test.derive-accounts.mjs'
+import './test.import-wallet.mjs'
 import './test.ledger.mjs'
-// import './test.lock-unlock.mjs'
-// import './test.manage-rolodex.mjs'
+import './test.lock-unlock.mjs'
+import './test.manage-rolodex.mjs'
 import './test.refresh-accounts.mjs'
 import './test.sign-blocks.mjs'
 import './test.tools.mjs'
index 2cf933dad70aa8b317c6132419aafa813cbf897a..bff22f72badd34e2c5a2670baf8562e7f448ca9c 100644 (file)
@@ -104,8 +104,7 @@ await suite('signature tests', async () => {
        await test('should verify a block using the public key', async () => {\r
                const wallet = await Bip44Wallet.fromSeed(NANO_TEST_VECTORS.PASSWORD, NANO_TEST_VECTORS.BIP39_SEED)\r
                await wallet.unlock(NANO_TEST_VECTORS.PASSWORD)\r
-               const accounts = await wallet.accounts()\r
-               const account = accounts[0]\r
+               const account = await wallet.account()\r
                const sendBlock = new SendBlock(\r
                        account.address,\r
                        '5618869000000000000000000000000',\r
@@ -124,8 +123,7 @@ await suite('signature tests', async () => {
        await test('should reject a block using the wrong public key', async () => {\r
                const wallet = await Bip44Wallet.fromSeed(NANO_TEST_VECTORS.PASSWORD, NANO_TEST_VECTORS.BIP39_SEED)\r
                await wallet.unlock(NANO_TEST_VECTORS.PASSWORD)\r
-               const accounts = await wallet.accounts()\r
-               const account = accounts[0]\r
+               const account = await wallet.account()\r
                const sendBlock = new SendBlock(\r
                        account.address,\r
                        '5618869000000000000000000000000',\r