Merge pull request #2540 from matiu/bug/recreate-addr
fix addr at recreate
This commit is contained in:
commit
1a6e06202f
3 changed files with 7 additions and 5 deletions
|
|
@ -38,6 +38,7 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
self.error = err;
|
||||
}
|
||||
else {
|
||||
$rootScope.$emit('Local/WalletImported', walletId);
|
||||
go.walletHome();
|
||||
notification.success('Success', 'Your wallet has been imported correctly');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -134,8 +134,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
$timeout(function() {
|
||||
self.setOngoingProcess('updatingPendingTxps', true);
|
||||
$log.debug('Updating PendingTxps');
|
||||
fc.getTxProposals({
|
||||
}, function(err, txps) {
|
||||
fc.getTxProposals({}, function(err, txps) {
|
||||
self.setOngoingProcess('updatingPendingTxps', false);
|
||||
if (err) {
|
||||
$log.debug('Wallet PendingTxps ERROR:', err);
|
||||
|
|
@ -339,7 +338,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
if (used) {
|
||||
$log.debug('Address ' + addr + ' was used. Cleaning Cache.')
|
||||
$rootScope.$emit('Local/NeedNewAddress', err);
|
||||
storageService.clearLastAddress(self.walletId, function(err, addr) {
|
||||
storageService.clearLastAddress(self.walletId, function(err) {
|
||||
if (cb) return cb();
|
||||
});
|
||||
};
|
||||
|
|
@ -351,6 +350,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
self.recreate = function(cb) {
|
||||
var fc = profileService.focusedClient;
|
||||
self.setOngoingProcess('recreating', true);
|
||||
self.clientError = null;
|
||||
fc.recreateWallet(function(err) {
|
||||
self.notAuthorized = false;
|
||||
self.setOngoingProcess('recreating', false);
|
||||
|
|
@ -459,7 +459,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
});
|
||||
|
||||
$rootScope.$on('Local/WalletImported', function(event, walletId) {
|
||||
self.startScan(walletId);
|
||||
storageService.clearLastAddress(walletId, function(err) {
|
||||
self.startScan(walletId);
|
||||
});
|
||||
});
|
||||
|
||||
$rootScope.$on('Animation/Disable', function(event) {
|
||||
|
|
|
|||
|
|
@ -253,7 +253,6 @@ angular.module('copayApp.services')
|
|||
|
||||
root.setAndStoreFocus(walletId, function() {
|
||||
storageService.storeProfile(root.profile, function(err) {
|
||||
$rootScope.$emit('Local/WalletImported', walletId);
|
||||
return cb(null, walletId);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue