aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send.constants.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-05-01 00:30:01 +0800
committerDan <danjm.com@gmail.com>2018-05-01 00:30:01 +0800
commit4a8c3194c2a4742d448d9fa9240c56a1e3319601 (patch)
treec4531fee76b374accb71a44296ec475f12c82047 /ui/app/components/send_/send.constants.js
parentbc145dc6a64ef5536bcbd263707b4cee071aea3b (diff)
downloadtangerine-wallet-browser-4a8c3194c2a4742d448d9fa9240c56a1e3319601.tar
tangerine-wallet-browser-4a8c3194c2a4742d448d9fa9240c56a1e3319601.tar.gz
tangerine-wallet-browser-4a8c3194c2a4742d448d9fa9240c56a1e3319601.tar.bz2
tangerine-wallet-browser-4a8c3194c2a4742d448d9fa9240c56a1e3319601.tar.lz
tangerine-wallet-browser-4a8c3194c2a4742d448d9fa9240c56a1e3319601.tar.xz
tangerine-wallet-browser-4a8c3194c2a4742d448d9fa9240c56a1e3319601.tar.zst
tangerine-wallet-browser-4a8c3194c2a4742d448d9fa9240c56a1e3319601.zip
Use constants for send screen errors messages.
Diffstat (limited to 'ui/app/components/send_/send.constants.js')
-rw-r--r--ui/app/components/send_/send.constants.js17
1 files changed, 14 insertions, 3 deletions
diff --git a/ui/app/components/send_/send.constants.js b/ui/app/components/send_/send.constants.js
index b3ee0899a..d047ed704 100644
--- a/ui/app/components/send_/send.constants.js
+++ b/ui/app/components/send_/send.constants.js
@@ -22,12 +22,23 @@ const MIN_GAS_TOTAL = multiplyCurrencies(MIN_GAS_LIMIT_HEX, MIN_GAS_PRICE_HEX, {
const TOKEN_TRANSFER_FUNCTION_SIGNATURE = '0xa9059cbb'
+const INSUFFICIENT_FUNDS_ERROR = 'insufficientFunds'
+const INSUFFICIENT_TOKENS_ERROR = 'insufficientTokens'
+const NEGATIVE_ETH_ERROR = 'negativeETH'
+const INVALID_RECIPIENT_ADDRESS_ERROR = 'invalidAddressRecipient'
+const REQUIRED_ERROR = 'required'
+
module.exports = {
+ INSUFFICIENT_FUNDS_ERROR,
+ INSUFFICIENT_TOKENS_ERROR,
+ INVALID_RECIPIENT_ADDRESS_ERROR,
+ MIN_GAS_LIMIT_DEC,
+ MIN_GAS_LIMIT_HEX,
+ MIN_GAS_PRICE_DEC,
MIN_GAS_PRICE_GWEI,
MIN_GAS_PRICE_HEX,
- MIN_GAS_PRICE_DEC,
- MIN_GAS_LIMIT_HEX,
- MIN_GAS_LIMIT_DEC,
MIN_GAS_TOTAL,
+ NEGATIVE_ETH_ERROR,
+ REQUIRED_ERROR,
TOKEN_TRANSFER_FUNCTION_SIGNATURE,
}