From cf284089a84e316c5c336b9e076d52a3729a6c4e Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 7 Aug 2025 17:53:59 -0700 Subject: [PATCH] Fix block signing test parameters. --- test/test.blocks.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test.blocks.mjs b/test/test.blocks.mjs index 3eea68e..7aac6cd 100644 --- a/test/test.blocks.mjs +++ b/test/test.blocks.mjs @@ -77,11 +77,10 @@ await Promise.all([ await test('fail to sign open block with wallet when locked', async () => { const wallet = await Wallet.import('BIP-44', PASSWORD, BIP39_SEED) - const block = new Block(OPEN_BLOCK.account, '0', OPEN_BLOCK.previous, OPEN_BLOCK.representative) + const block = new Block(ADDRESS_0, '0', OPEN_BLOCK.previous, OPEN_BLOCK.representative) .receive(OPEN_BLOCK.link, OPEN_BLOCK.balance) await assert.rejects(wallet.sign(0, block)) - assert.equal(block.hash, OPEN_BLOCK.hash) assert.ok(block.signature === undefined) await wallet.destroy() -- 2.47.3