fix tests
This commit is contained in:
parent
1e2555dad9
commit
b17517ede0
12 changed files with 25 additions and 16 deletions
|
|
@ -1009,7 +1009,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
return;
|
||||
}
|
||||
|
||||
profileService.addWalletClient(fc, {
|
||||
profileService.bindWalletClient(fc, {
|
||||
force: true
|
||||
});
|
||||
self.startScan(self.walletId);
|
||||
|
|
|
|||
|
|
@ -385,8 +385,8 @@ angular.module('copayApp.services')
|
|||
else $log.debug('Unsubscribed from push notifications service');
|
||||
});
|
||||
|
||||
$log.debug('Deleting Wallet:', fc.credentials.walletName);
|
||||
fc.removeAllListeners();
|
||||
$log.debug('Deleting Wallet:', client.credentials.walletName);
|
||||
client.removeAllListeners();
|
||||
|
||||
root.profile.deleteWallet(walletId);
|
||||
|
||||
|
|
@ -461,7 +461,7 @@ angular.module('copayApp.services')
|
|||
if (!opts.isImport) return cb();
|
||||
$rootScope.$emit('Local/BackupDone', walletId);
|
||||
|
||||
if (!walletClient.isComplete())
|
||||
if (!client.isComplete())
|
||||
return cb();
|
||||
|
||||
storageService.setCleanAndScanAddresses(walletId, cb);
|
||||
|
|
|
|||
|
|
@ -275,11 +275,11 @@ angular.module('copayApp.services')
|
|||
};
|
||||
|
||||
root.removeAllWalletData = function(walletId, cb) {
|
||||
storageService.clearLastAddress(walletId, function(err) {
|
||||
root.clearLastAddress(walletId, function(err) {
|
||||
if (err) return cb(err);
|
||||
storageService.removeTxHistory(walletId, function(err) {
|
||||
root.removeTxHistory(walletId, function(err) {
|
||||
if (err) return cb(err);
|
||||
storageService.clearBackupFlag(walletId, function(err) {
|
||||
root.clearBackupFlag(walletId, function(err) {
|
||||
return cb(err);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue