diff --git a/assets/js/controllers/send/sendBitcoinCash.controller.js b/assets/js/controllers/send/sendBitcoinCash.controller.js index 8a4469e4ce..9f086cbce1 100644 --- a/assets/js/controllers/send/sendBitcoinCash.controller.js +++ b/assets/js/controllers/send/sendBitcoinCash.controller.js @@ -110,6 +110,8 @@ function SendBitcoinCashController ($rootScope, $scope, AngularHelper, Env, MyWa let isBTCAddress = Wallet.isValidAddress(destination.address); let isBCHAddress = (addr) => { try { BitcoinCash.fromBitcoinCash(addr); } catch (e) { return false; } }; + $scope.bchAlternative = isBTCAddress && BitcoinCash.toBitcoinCash(destination.address, true); + $scope.forms.sendForm.destination.$setValidity('isBTCAddress', internal || isBTCAddress); $scope.forms.sendForm.destination.$setValidity('isValidAddress', internal || isBCHAddress(destination.address)); }, true); diff --git a/locales/en-human.json b/locales/en-human.json index fff98b626a..3d845fb72e 100644 --- a/locales/en-human.json +++ b/locales/en-human.json @@ -566,7 +566,7 @@ "BITCOIN_ADDRESS_INVALID" : "Invalid Bitcoin Address", "BCH_ADDRESS_INVALID": "Invalid Bitcoin Cash Address", "ETHER_ADDRESS_INVALID" : "Invalid Ether Address", - "BCH_ALTERNATIVE_AVAIL": "That's a bitcoin address. Please use a Bitcoin Cash address", + "BCH_ALTERNATIVE_AVAIL": "That's a bitcoin address. Please use a Bitcoin Cash address instead.", "EMAIL_ADDRESS_REQUIRED" : "Required", "EMAIL_ADDRESS_INVALID" : "Invalid", "EMAIL_CONFIRMATION_SENT" : "Sent",