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/customize-gas-modal | |
parent | 21349dd612f1eed0e4f97e4ebf27bed05d5b8992 (diff) | |
download | dexon-wallet-1bad3fa25782a322859df8942abf39b08777f13d.tar.gz dexon-wallet-1bad3fa25782a322859df8942abf39b08777f13d.tar.zst dexon-wallet-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/customize-gas-modal')
-rw-r--r-- | ui/app/components/customize-gas-modal/index.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/app/components/customize-gas-modal/index.js b/ui/app/components/customize-gas-modal/index.js index 4c693d1c..1ff8eea8 100644 --- a/ui/app/components/customize-gas-modal/index.js +++ b/ui/app/components/customize-gas-modal/index.js @@ -280,8 +280,7 @@ CustomizeGasModal.prototype.render = function () { h(GasModalCard, { value: convertedGasPrice, min: forceGasMin || MIN_GAS_PRICE_GWEI, - // max: 1000, - step: multiplyCurrencies(MIN_GAS_PRICE_GWEI, 10), + step: 1, onChange: value => this.convertAndSetGasPrice(value), title: this.context.t('gasPrice'), copy: this.context.t('gasPriceCalculation'), @@ -290,7 +289,6 @@ CustomizeGasModal.prototype.render = function () { h(GasModalCard, { value: convertedGasLimit, min: 1, - // max: 100000, step: 1, onChange: value => this.convertAndSetGasLimit(value), title: this.context.t('gasLimit'), |