From: Chris Duncan Date: Fri, 8 Aug 2025 00:53:59 +0000 (-0700) Subject: Fix block signing test parameters. X-Git-Tag: v0.10.5~43^2~47 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=cf284089a84e316c5c336b9e076d52a3729a6c4e;p=libnemo.git Fix block signing test parameters. --- 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()