aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/customize-gas-modal/index.js
diff options
context:
space:
mode:
authorPaul Bouchon <mail@bitpshr.net>2018-04-27 22:42:02 +0800
committerGitHub <noreply@github.com>2018-04-27 22:42:02 +0800
commit1bad3fa25782a322859df8942abf39b08777f13d (patch)
tree2993d825e0692d14ff4835fa08f0e6ff3d42d5c5 /ui/app/components/customize-gas-modal/index.js
parent21349dd612f1eed0e4f97e4ebf27bed05d5b8992 (diff)
downloadtangerine-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/customize-gas-modal/index.js')
-rw-r--r--ui/app/components/customize-gas-modal/index.js4
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 4c693d1c3..1ff8eea87 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'),