aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/util.js
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-06-06 03:09:19 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-06-06 03:09:19 +0800
commit653319be1055b8ff0a36cb334c93ac7435f1fc5c (patch)
treed686e751fbdfde49559efb575ab322f6f8f21115 /ui/app/util.js
parent37fd32025f9cb5dffb601011e2442efee59e3595 (diff)
downloadtangerine-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/util.js')
-rw-r--r--ui/app/util.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/app/util.js b/ui/app/util.js
index 7a56bf6a0..ac3f42c6b 100644
--- a/ui/app/util.js
+++ b/ui/app/util.js
@@ -61,6 +61,7 @@ function miniAddressSummary (address) {
function isValidAddress (address) {
var prefixed = ethUtil.addHexPrefix(address)
+ if (address === '0x0000000000000000000000000000000000000000') return false
return (isAllOneCase(prefixed) && ethUtil.isValidAddress(prefixed)) || ethUtil.isValidChecksumAddress(prefixed)
}