fixed PrivateKey initialization from JSON
This commit is contained in:
parent
c671a97c26
commit
d60d8cf2bc
|
@ -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
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue