aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send.js
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-06-06 02:40:20 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-06-06 02:48:04 +0800
commitbb6e41963d42a91ecc34a728b7c0c18d26e6cd9f (patch)
treee014ffb8fc923792c043c6699ba0409a67480dc4 /ui/app/send.js
parent9eea990425f1f68eabca8b283bdfc662befcd226 (diff)
downloadtangerine-wallet-browser-bb6e41963d42a91ecc34a728b7c0c18d26e6cd9f.tar.gz
tangerine-wallet-browser-bb6e41963d42a91ecc34a728b7c0c18d26e6cd9f.tar.zst
tangerine-wallet-browser-bb6e41963d42a91ecc34a728b7c0c18d26e6cd9f.zip
Dissallow transactions to be sent to 0x0000000000000000000000000000000000000000
Diffstat (limited to 'ui/app/send.js')
-rw-r--r--ui/app/send.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/send.js b/ui/app/send.js
index fd6994145..e0896035e 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)) {
+ if ((!util.isValidAddress(recipient) && !txData) || (!recipient && !txData) || (recipient === '0x0000000000000000000000000000000000000000')) {
message = 'Recipient address is invalid.'
return this.props.dispatch(actions.displayWarning(message))
}