Skip to content

Commit

Permalink
Remove line rather than comment out
Browse files Browse the repository at this point in the history
  • Loading branch information
tmashuang committed Mar 11, 2019
1 parent 22c4fe0 commit ef7ac90
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ui/app/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ function miniAddressSummary (address) {
function isValidAddress (address, network) {
var prefixed = ethUtil.addHexPrefix(address)
if (address === '0x0000000000000000000000000000000000000000') return false
// Checksums on non-ETH Blockchains #6001
// if (!isEthNetwork(network)) return (ethUtil.isValidAddress(prefixed) && address === address.toLowerCase())
return (isAllOneCase(prefixed) && ethUtil.isValidAddress(prefixed)) || ethUtil.isValidChecksumAddress(prefixed)
}

Expand Down Expand Up @@ -317,8 +315,6 @@ function getTokenAddressFromTokenObject (token) {
function checksumAddress (address, network) {
const checksummed = address ? ethUtil.toChecksumAddress(address) : ''
return checksummed
// Checksums on non-ETH Blockchains #6001
// return checksummed && network && !isEthNetwork(network) ? checksummed.toLowerCase() : checksummed
}

function addressSlicer (address = '') {
Expand Down

0 comments on commit ef7ac90

Please sign in to comment.