]> git.codecow.com Git - libnemo.git/commitdiff
Fix block signing tests.
authorChris Duncan <chris@zoso.dev>
Thu, 17 Jul 2025 00:19:44 +0000 (17:19 -0700)
committerChris Duncan <chris@zoso.dev>
Thu, 17 Jul 2025 00:19:44 +0000 (17:19 -0700)
test/test.tools.mjs

index 695f5b491f7457a9cb470dcfdf9486f1a0669c27..c31f962e3201e63dea08dbbe97d42e90014ec1b2 100644 (file)
@@ -105,7 +105,7 @@ await suite('signature tests', async () => {
                const wallet = await Bip44Wallet.fromSeed(NANO_TEST_VECTORS.PASSWORD, NANO_TEST_VECTORS.BIP39_SEED)\r
                await wallet.unlock(NANO_TEST_VECTORS.PASSWORD)\r
                const account = await wallet.account()\r
-               const privateKey = await account.exportPrivateKey(wallet.seed)\r
+               const privateKey = await account.exportPrivateKey(wallet.seed, 'hex')\r
                const sendBlock = new SendBlock(\r
                        account.address,\r
                        '5618869000000000000000000000000',\r
@@ -125,7 +125,7 @@ await suite('signature tests', async () => {
                const wallet = await Bip44Wallet.fromSeed(NANO_TEST_VECTORS.PASSWORD, NANO_TEST_VECTORS.BIP39_SEED)\r
                await wallet.unlock(NANO_TEST_VECTORS.PASSWORD)\r
                const account = await wallet.account()\r
-               const privateKey = await account.exportPrivateKey(wallet.seed)\r
+               const privateKey = await account.exportPrivateKey(wallet.seed, 'hex')\r
                const sendBlock = new SendBlock(\r
                        account.address,\r
                        '5618869000000000000000000000000',\r