]> git.codecow.com Git - libnemo.git/commitdiff
Fix block signing test parameters.
authorChris Duncan <chris@zoso.dev>
Fri, 8 Aug 2025 00:53:59 +0000 (17:53 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 8 Aug 2025 00:53:59 +0000 (17:53 -0700)
test/test.blocks.mjs

index 3eea68e93427bda443dd387cb2d2898b63d20a28..7aac6cdc2c01488b9fbd4eb6d16d5cdb2f3ab6dd 100644 (file)
@@ -77,11 +77,10 @@ await Promise.all([
 \r
                await test('fail to sign open block with wallet when locked', async () => {\r
                        const wallet = await Wallet.import('BIP-44', PASSWORD, BIP39_SEED)\r
-                       const block = new Block(OPEN_BLOCK.account, '0', OPEN_BLOCK.previous, OPEN_BLOCK.representative)\r
+                       const block = new Block(ADDRESS_0, '0', OPEN_BLOCK.previous, OPEN_BLOCK.representative)\r
                                .receive(OPEN_BLOCK.link, OPEN_BLOCK.balance)\r
 \r
                        await assert.rejects(wallet.sign(0, block))\r
-                       assert.equal(block.hash, OPEN_BLOCK.hash)\r
                        assert.ok(block.signature === undefined)\r
 \r
                        await wallet.destroy()\r