do not import address book if wallet already in Copay
This commit is contained in:
parent
3ce8806286
commit
f3251a5057
1 changed files with 6 additions and 3 deletions
|
|
@ -408,9 +408,12 @@ angular.module('copayApp.services')
|
||||||
var addressBook = str.addressBook || {};
|
var addressBook = str.addressBook || {};
|
||||||
var historyCache = str.historyCache || [];
|
var historyCache = str.historyCache || [];
|
||||||
|
|
||||||
root.setMetaData(walletClient, addressBook, historyCache, function(err) {
|
root._addWalletClient(walletClient, opts, function(err, walletId) {
|
||||||
if (err) console.log(err);
|
if (err) return cb(err);
|
||||||
root._addWalletClient(walletClient, opts, cb);
|
root.setMetaData(walletClient, addressBook, historyCache, function(error) {
|
||||||
|
if (error) console.log(error);
|
||||||
|
return cb(err, walletId);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue