fixed PrivateKey initialization from JSON

This commit is contained in:
Utente 2015-06-03 12:23:01 -07:00
parent c671a97c26
commit d60d8cf2bc
1 changed files with 2 additions and 1 deletions

View File

@ -247,9 +247,10 @@ PrivateKey._transformJSON = function(json) {
json = JSON.parse(json); json = JSON.parse(json);
} }
var bn = new BN(json.bn, 'hex'); var bn = new BN(json.bn, 'hex');
var network = Networks.get(json.network);
return { return {
bn: bn, bn: bn,
network: json.network, network: network,
compressed: json.compressed compressed: json.compressed
}; };
}; };