diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-09-13 03:52:13 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-09-13 03:52:13 +0800 |
commit | ef6967325e43de26edc0d99ac5853804648024ae (patch) | |
tree | 6c98933eef9a7e9b71c7ca472d3c82e19fb19bf0 /ui/app/util.js | |
parent | 243be92ac165d028d532a02f5b32ff9edc526f23 (diff) | |
download | tangerine-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/app/util.js')
-rw-r--r-- | ui/app/util.js | 2 |
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) { |