diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-11-18 05:23:25 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-11-21 03:42:46 +0800 |
commit | c6713e93adcaeeba1ec559d44135bb62c76d2538 (patch) | |
tree | b2f60bbaf327daa870f8e2b2615faaabb0470676 /ui/app/components/send | |
parent | fbd04a6af6e9eda22eebaae27d712ae08272c131 (diff) | |
download | tangerine-wallet-browser-c6713e93adcaeeba1ec559d44135bb62c76d2538.tar tangerine-wallet-browser-c6713e93adcaeeba1ec559d44135bb62c76d2538.tar.gz tangerine-wallet-browser-c6713e93adcaeeba1ec559d44135bb62c76d2538.tar.bz2 tangerine-wallet-browser-c6713e93adcaeeba1ec559d44135bb62c76d2538.tar.lz tangerine-wallet-browser-c6713e93adcaeeba1ec559d44135bb62c76d2538.tar.xz tangerine-wallet-browser-c6713e93adcaeeba1ec559d44135bb62c76d2538.tar.zst tangerine-wallet-browser-c6713e93adcaeeba1ec559d44135bb62c76d2538.zip |
Fix bug where gas param was not a string
Prevented sending transactions.
Fixes #2598
Diffstat (limited to 'ui/app/components/send')
-rw-r--r-- | ui/app/components/send/send-constants.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/send/send-constants.js b/ui/app/components/send/send-constants.js index a961ffcd8..9c240972f 100644 --- a/ui/app/components/send/send-constants.js +++ b/ui/app/components/send/send-constants.js @@ -3,8 +3,8 @@ const { conversionUtil, multiplyCurrencies } = require('../../conversion-util') const MIN_GAS_PRICE_HEX = (100000000).toString(16) const MIN_GAS_PRICE_DEC = '100000000' -const MIN_GAS_LIMIT_HEX = (21000).toString(16) -const MIN_GAS_LIMIT_DEC = 21000 +const MIN_GAS_LIMIT_DEC = '21000' +const MIN_GAS_LIMIT_HEX = (parseInt(MIN_GAS_LIMIT_DEC)).toString(16) const MIN_GAS_PRICE_GWEI = ethUtil.addHexPrefix(conversionUtil(MIN_GAS_PRICE_HEX, { fromDenomination: 'WEI', |