Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
fix(BCH): change error message when btc addr entered in bch send
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jan 17, 2018
1 parent 623a0b1 commit 65335fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions assets/js/controllers/send/sendBitcoinCash.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ 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);
Expand Down
2 changes: 1 addition & 1 deletion locales/en-human.json
Original file line number Diff line number Diff line change
Expand Up @@ -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, try: {{::alt}}",
"BCH_ALTERNATIVE_AVAIL": "That's a bitcoin address. Please use a <b>Bitcoin Cash address</b>",
"EMAIL_ADDRESS_REQUIRED" : "Required",
"EMAIL_ADDRESS_INVALID" : "Invalid",
"EMAIL_CONFIRMATION_SENT" : "Sent",
Expand Down

0 comments on commit 65335fa

Please sign in to comment.