fix tests
This commit is contained in:
parent
47e958277a
commit
1313088e14
4 changed files with 70 additions and 55 deletions
|
|
@ -73,7 +73,6 @@ angular.module('copayApp.services')
|
|||
}, 3000);
|
||||
|
||||
root.installWalletHandlers = function($scope, w) {
|
||||
w.removeAllListeners();
|
||||
|
||||
var wid = w.getId();
|
||||
w.on('connectionError', function() {
|
||||
|
|
@ -101,13 +100,6 @@ angular.module('copayApp.services')
|
|||
}
|
||||
});
|
||||
|
||||
w.on('newAddresses', function(dontDigest) {
|
||||
root.updateTxsAndBalance(w);
|
||||
if (!dontDigest) {
|
||||
$rootScope.$digest();
|
||||
}
|
||||
});
|
||||
|
||||
w.on('tx', function(address, isChange) {
|
||||
if (!isChange) {
|
||||
notification.funds('Funds received on ' + w.getName(), address);
|
||||
|
|
@ -137,8 +129,11 @@ angular.module('copayApp.services')
|
|||
$rootScope.$digest();
|
||||
}
|
||||
});
|
||||
w.on('newAddresses', function() {
|
||||
root.updateTxsAndBalance(w);
|
||||
});
|
||||
|
||||
w.on('txProposalsUpdated', function(dontDigest) {
|
||||
w.on('txProposalsUpdated', function() {
|
||||
root.updateTxsAndBalance(w);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue