aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-09-13 03:52:13 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-09-13 03:52:13 +0800
commitef6967325e43de26edc0d99ac5853804648024ae (patch)
tree6c98933eef9a7e9b71c7ca472d3c82e19fb19bf0 /ui
parent243be92ac165d028d532a02f5b32ff9edc526f23 (diff)
downloadtangerine-wallet-browser-ef6967325e43de26edc0d99ac5853804648024ae.tar
tangerine-wallet-browser-ef6967325e43de26edc0d99ac5853804648024ae.tar.gz
tangerine-wallet-browser-ef6967325e43de26edc0d99ac5853804648024ae.tar.bz2
tangerine-wallet-browser-ef6967325e43de26edc0d99ac5853804648024ae.tar.lz
tangerine-wallet-browser-ef6967325e43de26edc0d99ac5853804648024ae.tar.xz
tangerine-wallet-browser-ef6967325e43de26edc0d99ac5853804648024ae.tar.zst
tangerine-wallet-browser-ef6967325e43de26edc0d99ac5853804648024ae.zip
Check if all lower or upper before doing checksum.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/util.js b/ui/app/util.js
index 860a17224..3f8b4dcc3 100644
--- a/ui/app/util.js
+++ b/ui/app/util.js
@@ -70,7 +70,7 @@ function isValidAddress (address) {
function isInvalidChecksumAddress (address) {
var prefixed = ethUtil.addHexPrefix(address)
if (address === '0x0000000000000000000000000000000000000000') return false
- return ethUtil.isValidAddress(prefixed) && !ethUtil.isValidChecksumAddress(prefixed)
+ return !isAllOneCase(prefixed) && !ethUtil.isValidChecksumAddress(prefixed) && ethUtil.isValidAddress(prefixed)
}
function isAllOneCase (address) {