diff options
author | Dan <danjm.com@gmail.com> | 2018-05-22 16:10:06 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-05-31 07:24:31 +0800 |
commit | 166fda58777748141859c0a674a5fce454cfc3d3 (patch) | |
tree | b8f743c927ff55ee02be61b013d3c726711381c3 /ui/app/components/send_/send.constants.js | |
parent | 17909465f283179aad39166b1191dbaba3770bf6 (diff) | |
download | tangerine-wallet-browser-166fda58777748141859c0a674a5fce454cfc3d3.tar.gz tangerine-wallet-browser-166fda58777748141859c0a674a5fce454cfc3d3.tar.zst tangerine-wallet-browser-166fda58777748141859c0a674a5fce454cfc3d3.zip |
Simplify gas estimate actions and add local estimateGasPriceFromRecentBlocks method.
Diffstat (limited to 'ui/app/components/send_/send.constants.js')
-rw-r--r-- | ui/app/components/send_/send.constants.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/app/components/send_/send.constants.js b/ui/app/components/send_/send.constants.js index b59fcaaf0..e911a5510 100644 --- a/ui/app/components/send_/send.constants.js +++ b/ui/app/components/send_/send.constants.js @@ -28,6 +28,13 @@ const NEGATIVE_ETH_ERROR = 'negativeETH' const INVALID_RECIPIENT_ADDRESS_ERROR = 'invalidAddressRecipient' const REQUIRED_ERROR = 'required' +const ONE_GWEI_IN_WEI_HEX = ethUtil.addHexPrefix(conversionUtil('0x1', { + fromDenomination: 'GWEI', + toDenomination: 'WEI', + fromNumericBase: 'hex', + toNumericBase: 'hex', +})) + module.exports = { INSUFFICIENT_FUNDS_ERROR, INSUFFICIENT_TOKENS_ERROR, @@ -39,6 +46,7 @@ module.exports = { MIN_GAS_PRICE_HEX, MIN_GAS_TOTAL, NEGATIVE_ETH_ERROR, + ONE_GWEI_IN_WEI_HEX, REQUIRED_ERROR, TOKEN_TRANSFER_FUNCTION_SIGNATURE, } |