From 505e33c9429080669f67491c60cf8a2e414bc2f4 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Thu, 17 Apr 2014 19:49:03 +1000 Subject: [PATCH] Changes netstr to networkString --- src/hdwallet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hdwallet.js b/src/hdwallet.js index 4655e74..2885562 100644 --- a/src/hdwallet.js +++ b/src/hdwallet.js @@ -20,12 +20,12 @@ function HmacSHA512(buffer, secret) { return new Buffer(convert.wordArrayToBytes(hash)) } -function HDWallet(seed, netstr) { +function HDWallet(seed, networkString) { if (seed == undefined) return; // FIXME: Boo, should be stricter var I = HmacSHA512(seed, 'Bitcoin seed') this.chaincode = I.slice(32) - this.network = netstr || 'bitcoin' + this.network = networkString || 'bitcoin' if(!Network.hasOwnProperty(this.network)) { throw new Error("Unknown network: " + this.network)