diff options
author | Dan Finlay <flyswatter@users.noreply.github.com> | 2017-09-19 02:46:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-19 02:46:50 +0800 |
commit | fa50bf9587882837af312fb18123cc98d1576313 (patch) | |
tree | 81474f053c88d9a55087cec95825390987f5aab2 /ui/app/send.js | |
parent | c463647ad7a825eb954a56599ec205a3ba6cd3e6 (diff) | |
parent | 67accea693cb5f3167279ecdbe869cc464f7665a (diff) | |
download | tangerine-wallet-browser-fa50bf9587882837af312fb18123cc98d1576313.tar tangerine-wallet-browser-fa50bf9587882837af312fb18123cc98d1576313.tar.gz tangerine-wallet-browser-fa50bf9587882837af312fb18123cc98d1576313.tar.bz2 tangerine-wallet-browser-fa50bf9587882837af312fb18123cc98d1576313.tar.lz tangerine-wallet-browser-fa50bf9587882837af312fb18123cc98d1576313.tar.xz tangerine-wallet-browser-fa50bf9587882837af312fb18123cc98d1576313.tar.zst tangerine-wallet-browser-fa50bf9587882837af312fb18123cc98d1576313.zip |
Merge pull request #2075 from MetaMask/mixed-case
Specific error for send screen: address checksum fails
Diffstat (limited to 'ui/app/send.js')
-rw-r--r-- | ui/app/send.js | 5 |
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)) |