diff options
author | Paul Bouchon <mail@bitpshr.net> | 2018-04-27 22:42:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-27 22:42:02 +0800 |
commit | 1bad3fa25782a322859df8942abf39b08777f13d (patch) | |
tree | 2993d825e0692d14ff4835fa08f0e6ff3d42d5c5 /ui/app/components/send/send-constants.js | |
parent | 21349dd612f1eed0e4f97e4ebf27bed05d5b8992 (diff) | |
download | tangerine-wallet-browser-1bad3fa25782a322859df8942abf39b08777f13d.tar.gz tangerine-wallet-browser-1bad3fa25782a322859df8942abf39b08777f13d.tar.zst tangerine-wallet-browser-1bad3fa25782a322859df8942abf39b08777f13d.zip |
Allow transactions with 0-gwei gas price (#4073)
* Allow transactions with 0-gwei gas price
* Add tests to verify tx with 0 gas fee
* Conditionally use CurrencyInput in CurrencyDisplay
Diffstat (limited to 'ui/app/components/send/send-constants.js')
-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 b3ee0899a..5d89c74aa 100644 --- a/ui/app/components/send/send-constants.js +++ b/ui/app/components/send/send-constants.js @@ -1,8 +1,8 @@ const ethUtil = require('ethereumjs-util') const { conversionUtil, multiplyCurrencies } = require('../../conversion-util') -const MIN_GAS_PRICE_HEX = (100000000).toString(16) -const MIN_GAS_PRICE_DEC = '100000000' +const MIN_GAS_PRICE_DEC = '0' +const MIN_GAS_PRICE_HEX = (parseInt(MIN_GAS_PRICE_DEC)).toString(16) const MIN_GAS_LIMIT_DEC = '21000' const MIN_GAS_LIMIT_HEX = (parseInt(MIN_GAS_LIMIT_DEC)).toString(16) |