got address book working with bitcoin cash addresses
This commit is contained in:
parent
1d3da45e32
commit
1c8990fc08
10 changed files with 41 additions and 23 deletions
|
|
@ -63,11 +63,8 @@ angular.module('copayApp.controllers').controller('addressesController', functio
|
|||
a.translatedAddresses = bitcoinCashJsService.translateAddresses(a.address);
|
||||
});
|
||||
|
||||
var cashaddrDate = new Date(2018, 0, 15);
|
||||
var currentDate = new Date();
|
||||
|
||||
$scope.addressType = {
|
||||
type: currentDate >= cashaddrDate ? 'cashaddr' : 'legacy'
|
||||
type: 'cashaddr'
|
||||
};
|
||||
$scope.showAddressTypes = true;
|
||||
}
|
||||
|
|
@ -141,7 +138,7 @@ angular.module('copayApp.controllers').controller('addressesController', functio
|
|||
if ($scope.wallet.coin == 'bch') {
|
||||
_addr[0].translatedAddresses = bitcoinCashJsService.translateAddresses(_addr[0].address);
|
||||
}
|
||||
|
||||
|
||||
$scope.noBalance = [_addr[0]].concat($scope.noBalance);
|
||||
$scope.latestUnused = lodash.slice($scope.noBalance, 0, UNUSED_ADDRESS_LIMIT);
|
||||
$scope.viewAll = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue