diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-06-06 03:09:19 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-06-06 03:09:19 +0800 |
commit | 653319be1055b8ff0a36cb334c93ac7435f1fc5c (patch) | |
tree | d686e751fbdfde49559efb575ab322f6f8f21115 /ui/app/send.js | |
parent | 37fd32025f9cb5dffb601011e2442efee59e3595 (diff) | |
download | tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar.gz tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar.bz2 tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar.lz tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar.xz tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar.zst tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.zip |
move address check to util.isValidAddress
Diffstat (limited to 'ui/app/send.js')
-rw-r--r-- | ui/app/send.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/send.js b/ui/app/send.js index e0896035e..75a600dee 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -262,7 +262,7 @@ SendTransactionScreen.prototype.onSubmit = function () { return this.props.dispatch(actions.displayWarning(message)) } - if ((!util.isValidAddress(recipient) && !txData) || (!recipient && !txData) || (recipient === '0x0000000000000000000000000000000000000000')) { + if ((!util.isValidAddress(recipient) && !txData) || (!recipient && !txData) { message = 'Recipient address is invalid.' return this.props.dispatch(actions.displayWarning(message)) } |