diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2019-05-09 01:34:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-09 01:34:56 +0800 |
commit | 0497d209b2adb4ac026a54159069fd44aaace9f7 (patch) | |
tree | be0ae45185c04fb19eebd56dc31a51a82c5b4da2 /ui/app/pages/send/send-content/send-to-row/send-to-row.utils.js | |
parent | 7df7f709bfb25099e7ea6607dd765c21cb242d4d (diff) | |
download | tangerine-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.js | 3 |
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 } } |