Added support for list and create address in a opened wallet
This commit is contained in:
parent
c646528a65
commit
9db1740b1f
3 changed files with 3312 additions and 9 deletions
|
|
@ -10,8 +10,15 @@ angular.module('copay.home').controller('HomeController',
|
|||
$location.path('signin');
|
||||
}
|
||||
|
||||
$scope.addrs = [
|
||||
{ addrStr: 'n3zUqNR7Bbbc4zJhPVj1vG2Lx66K3Xhzvb'},
|
||||
{ addrStr: 'my9wnLwwUrwpNfEgSrWY62ymEGf1edKf4J'}
|
||||
];
|
||||
$scope.addrs = $rootScope.publicKeyRing.getAddresses();
|
||||
$scope.selectedAddr = $scope.addrs[0];
|
||||
|
||||
$scope.newAddr = function() {
|
||||
var a = $rootScope.publicKeyRing.generateAddress();
|
||||
$scope.addrs.push({ addrStr: a.toString('hex') });
|
||||
};
|
||||
|
||||
$scope.selectAddr = function(addr) {
|
||||
$scope.selectedAddr = addr;
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue