aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send.constants.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-05-22 23:16:53 +0800
committerDan <danjm.com@gmail.com>2018-05-31 07:24:31 +0800
commit4f0b4eef5030575e8ebdf35ca19fbc77376c70b9 (patch)
treeec8c1307ffa573765dc6a3155554a87a41fd2a51 /ui/app/components/send_/send.constants.js
parent166fda58777748141859c0a674a5fce454cfc3d3 (diff)
downloadtangerine-wallet-browser-4f0b4eef5030575e8ebdf35ca19fbc77376c70b9.tar.gz
tangerine-wallet-browser-4f0b4eef5030575e8ebdf35ca19fbc77376c70b9.tar.zst
tangerine-wallet-browser-4f0b4eef5030575e8ebdf35ca19fbc77376c70b9.zip
Estimate gas using same algorithm as backend.
Diffstat (limited to 'ui/app/components/send_/send.constants.js')
-rw-r--r--ui/app/components/send_/send.constants.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/app/components/send_/send.constants.js b/ui/app/components/send_/send.constants.js
index e911a5510..df5dee371 100644
--- a/ui/app/components/send_/send.constants.js
+++ b/ui/app/components/send_/send.constants.js
@@ -35,6 +35,8 @@ const ONE_GWEI_IN_WEI_HEX = ethUtil.addHexPrefix(conversionUtil('0x1', {
toNumericBase: 'hex',
}))
+const SIMPLE_GAS_COST = '0x5208' // Hex for 21000, cost of a simple send.
+
module.exports = {
INSUFFICIENT_FUNDS_ERROR,
INSUFFICIENT_TOKENS_ERROR,
@@ -48,5 +50,6 @@ module.exports = {
NEGATIVE_ETH_ERROR,
ONE_GWEI_IN_WEI_HEX,
REQUIRED_ERROR,
+ SIMPLE_GAS_COST,
TOKEN_TRANSFER_FUNCTION_SIGNATURE,
}