From 749943cb4e33e80873f12f1bbb6e173cd124ee8f Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Sat, 31 May 2014 15:21:18 +1000 Subject: [PATCH] HDWallet: clarify test intention --- test/hdwallet.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/hdwallet.js b/test/hdwallet.js index f4a5c99..0fc7987 100644 --- a/test/hdwallet.js +++ b/test/hdwallet.js @@ -81,12 +81,12 @@ describe('HDWallet', function() { }) it('fails for an invalid network type', function() { - var buffer = new HDWallet(seed).toBuffer() - buffer.writeUInt32BE(0x00000000, 0) + var network = { bip32: { priv: 0x11111111, pub: 0x22222222 } } + var buffer = new HDWallet(seed, network).toBuffer() assert.throws(function() { HDWallet.fromBuffer(buffer) - }, /Could not find version 0/) + }, /Could not find version 22222222/) }) }) })