From d60d8cf2bc0d93ecadfcb364d169ef992f8780da Mon Sep 17 00:00:00 2001 From: Utente Date: Wed, 3 Jun 2015 12:23:01 -0700 Subject: [PATCH] fixed PrivateKey initialization from JSON --- lib/privatekey.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/privatekey.js b/lib/privatekey.js index 26c31eb..8560f68 100644 --- a/lib/privatekey.js +++ b/lib/privatekey.js @@ -247,9 +247,10 @@ PrivateKey._transformJSON = function(json) { json = JSON.parse(json); } var bn = new BN(json.bn, 'hex'); + var network = Networks.get(json.network); return { bn: bn, - network: json.network, + network: network, compressed: json.compressed }; };