aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/pages/send/send-content/send-to-row/send-to-row.utils.js
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2019-05-09 01:34:56 +0800
committerGitHub <noreply@github.com>2019-05-09 01:34:56 +0800
commit0497d209b2adb4ac026a54159069fd44aaace9f7 (patch)
treebe0ae45185c04fb19eebd56dc31a51a82c5b4da2 /ui/app/pages/send/send-content/send-to-row/send-to-row.utils.js
parent7df7f709bfb25099e7ea6607dd765c21cb242d4d (diff)
downloadtangerine-wallet-browser-0497d209b2adb4ac026a54159069fd44aaace9f7.tar.gz
tangerine-wallet-browser-0497d209b2adb4ac026a54159069fd44aaace9f7.tar.zst
tangerine-wallet-browser-0497d209b2adb4ac026a54159069fd44aaace9f7.zip
Remove KNOWN_ADDRESS_ERROR from error objects (#6578)
* Remove KNOWN_ADDRESS_ERROR from error objects * Update test comments
Diffstat (limited to 'ui/app/pages/send/send-content/send-to-row/send-to-row.utils.js')
-rw-r--r--ui/app/pages/send/send-content/send-to-row/send-to-row.utils.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/app/pages/send/send-content/send-to-row/send-to-row.utils.js b/ui/app/pages/send/send-content/send-to-row/send-to-row.utils.js
index d0a43f086..200a2e26a 100644
--- a/ui/app/pages/send/send-content/send-to-row/send-to-row.utils.js
+++ b/ui/app/pages/send/send-content/send-to-row/send-to-row.utils.js
@@ -17,9 +17,8 @@ function getToErrorObject (to, toError = null, hasHexData = false, tokens = [],
}
} else if (!isValidAddress(to, network) && !toError) {
toError = isEthNetwork(network) ? INVALID_RECIPIENT_ADDRESS_ERROR : INVALID_RECIPIENT_ADDRESS_NOT_ETH_NETWORK_ERROR
- } else if (selectedToken && (ethUtil.toChecksumAddress(to) in contractMap || checkExistingAddresses(to, tokens))) {
- toError = KNOWN_RECIPIENT_ADDRESS_ERROR
}
+
return { to: toError }
}