tx broadcasting working
This commit is contained in:
parent
73e7b0d0e0
commit
df23125f5e
6 changed files with 41 additions and 14 deletions
|
|
@ -15,7 +15,9 @@ angular.module('copay.home').controller('HomeController',
|
|||
}
|
||||
|
||||
$scope.newAddr = function() {
|
||||
console.log('[home.js.17:newAddr:]'); //TODO
|
||||
var a = $rootScope.wallet.generateAddress();
|
||||
console.log('[home.js.19]',a); //TODO
|
||||
$scope.addrs.push({ addrStr: a.toString() });
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -14,11 +14,17 @@ angular.module('copay.signin').controller('SigninController',
|
|||
};
|
||||
|
||||
var _setupUxHandlers = function(w) {
|
||||
w.on('created', function(){
|
||||
w.on('created', function() {
|
||||
$location.path('peer');
|
||||
$rootScope.wallet = w;
|
||||
$rootScope.$digest();
|
||||
});
|
||||
w.on('refresh', function() {
|
||||
|
||||
console.log('[signin.js.23] RECEIVED REFRESH'); //TODO
|
||||
$rootScope.$digest();
|
||||
});
|
||||
|
||||
w.on('openError', function(){
|
||||
$scope.loading = false;
|
||||
$rootScope.flashMessage = {type:'error', message: 'Wallet not found'};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue