aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send.js
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-09-13 03:23:21 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-09-13 03:23:21 +0800
commit7810880f0c96ff8628cfd87bf7e6cb8145bb147a (patch)
tree3a8d56836040590940679a5a087579440383325c /ui/app/send.js
parentcafebb6417331d9d0a0a83fdc1cc4fdb04d0a5ec (diff)
downloadtangerine-wallet-browser-7810880f0c96ff8628cfd87bf7e6cb8145bb147a.tar
tangerine-wallet-browser-7810880f0c96ff8628cfd87bf7e6cb8145bb147a.tar.gz
tangerine-wallet-browser-7810880f0c96ff8628cfd87bf7e6cb8145bb147a.tar.bz2
tangerine-wallet-browser-7810880f0c96ff8628cfd87bf7e6cb8145bb147a.tar.lz
tangerine-wallet-browser-7810880f0c96ff8628cfd87bf7e6cb8145bb147a.tar.xz
tangerine-wallet-browser-7810880f0c96ff8628cfd87bf7e6cb8145bb147a.tar.zst
tangerine-wallet-browser-7810880f0c96ff8628cfd87bf7e6cb8145bb147a.zip
Add specific error message for failed address checksum.
Diffstat (limited to 'ui/app/send.js')
-rw-r--r--ui/app/send.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/send.js b/ui/app/send.js
index a21a219eb..e59c1130e 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -262,6 +262,11 @@ SendTransactionScreen.prototype.onSubmit = function () {
return this.props.dispatch(actions.displayWarning(message))
}
+ if ((util.isInvalidChecksumAddress(recipient))) {
+ message = 'Recipient address checksum is invalid.'
+ return this.props.dispatch(actions.displayWarning(message))
+ }
+
if ((!util.isValidAddress(recipient) && !txData) || (!recipient && !txData)) {
message = 'Recipient address is invalid.'
return this.props.dispatch(actions.displayWarning(message))