diff --git a/src/js/controllers/addresses.js b/src/js/controllers/addresses.js index ff7fd636b..921b4a3f3 100644 --- a/src/js/controllers/addresses.js +++ b/src/js/controllers/addresses.js @@ -69,6 +69,7 @@ angular.module('copayApp.controllers').controller('addressesController', functio $scope.addressType = { type: currentDate >= cashaddrDate ? 'cashaddr' : 'legacy' }; + $scope.showAddressTypes = true; } cachedWallet = $scope.wallet.id; @@ -137,7 +138,10 @@ angular.module('copayApp.controllers').controller('addressesController', functio ongoingProcess.set('generatingNewAddress', false); if (err) return popupService.showAlert(gettextCatalog.getString('Error'), err); if (addr != _addr[0].address) return popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('New address could not be generated. Please try again.')); - + 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 = { diff --git a/www/views/addresses.html b/www/views/addresses.html index da5d78ef0..c426f245e 100644 --- a/www/views/addresses.html +++ b/www/views/addresses.html @@ -37,7 +37,7 @@ -
The restore process will stop when 20 addresses are generated in a row which contain no funds. To safely generate more addresses, make a payment to one of the unused addresses which has already been generated. Read less