fix networkname on partial import
This commit is contained in:
parent
7f0e9cd03d
commit
b70857f9e1
2 changed files with 7 additions and 3 deletions
|
|
@ -533,13 +533,14 @@ Wallet.prototype.toObj = function() {
|
|||
// fromObj => from a trusted source
|
||||
Wallet.fromObj = function(o, storage, network, blockchain) {
|
||||
var opts = JSON.parse(JSON.stringify(o.opts));
|
||||
|
||||
opts.addressBook = o.addressBook;
|
||||
|
||||
if (o.privateKey)
|
||||
opts.privateKey = PrivateKey.fromObj(o.privateKey);
|
||||
else
|
||||
opts.privateKey = new PrivateKey({
|
||||
networkName: this.networkName
|
||||
networkName: opts.networkName
|
||||
});
|
||||
|
||||
if (o.publicKeyRing)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue