diff options
author | Esteban MiƱo <efmino@uc.cl> | 2019-01-23 03:05:59 +0800 |
---|---|---|
committer | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2019-01-23 03:05:59 +0800 |
commit | 1d93d9a3852daf3842ef71c3775f41cbb79a3f00 (patch) | |
tree | d4643fb30d6b1ad39eb06f7af68c111f5a42ba7a /ui/app/components/send/send.constants.js | |
parent | 2cfea0b788e4c3f9420358ef62cff46850fc8146 (diff) | |
download | tangerine-wallet-browser-1d93d9a3852daf3842ef71c3775f41cbb79a3f00.tar.gz tangerine-wallet-browser-1d93d9a3852daf3842ef71c3775f41cbb79a3f00.tar.zst tangerine-wallet-browser-1d93d9a3852daf3842ef71c3775f41cbb79a3f00.zip |
Prevent send to token (#6051)
* check contact metadata
* check for tokens in state
* tests
* update tests
* validation only if sending tokens
* container test
Diffstat (limited to 'ui/app/components/send/send.constants.js')
-rw-r--r-- | ui/app/components/send/send.constants.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/app/components/send/send.constants.js b/ui/app/components/send/send.constants.js index 8acdf0641..e79734a54 100644 --- a/ui/app/components/send/send.constants.js +++ b/ui/app/components/send/send.constants.js @@ -27,6 +27,7 @@ const INSUFFICIENT_TOKENS_ERROR = 'insufficientTokens' const NEGATIVE_ETH_ERROR = 'negativeETH' const INVALID_RECIPIENT_ADDRESS_ERROR = 'invalidAddressRecipient' const REQUIRED_ERROR = 'required' +const KNOWN_RECIPIENT_ADDRESS_ERROR = 'knownAddressRecipient' const ONE_GWEI_IN_WEI_HEX = ethUtil.addHexPrefix(conversionUtil('0x1', { fromDenomination: 'GWEI', @@ -42,6 +43,7 @@ module.exports = { INSUFFICIENT_FUNDS_ERROR, INSUFFICIENT_TOKENS_ERROR, INVALID_RECIPIENT_ADDRESS_ERROR, + KNOWN_RECIPIENT_ADDRESS_ERROR, MIN_GAS_LIMIT_DEC, MIN_GAS_LIMIT_HEX, MIN_GAS_PRICE_DEC, |