|
|
@ -233,6 +233,7 @@ CustomizeGasModal.prototype.render = function () { |
|
|
|
|
|
|
|
|
|
|
|
convertedGasPrice += convertedGasPrice.match(/[.]/) ? priceSigZeros : `${priceSigDec}${priceSigZeros}` |
|
|
|
convertedGasPrice += convertedGasPrice.match(/[.]/) ? priceSigZeros : `${priceSigDec}${priceSigZeros}` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let newGasPrice = gasPrice |
|
|
|
if (forceGasMin) { |
|
|
|
if (forceGasMin) { |
|
|
|
const convertedMinPrice = conversionUtil(forceGasMin, { |
|
|
|
const convertedMinPrice = conversionUtil(forceGasMin, { |
|
|
|
fromNumericBase: 'hex', |
|
|
|
fromNumericBase: 'hex', |
|
|
@ -242,6 +243,10 @@ CustomizeGasModal.prototype.render = function () { |
|
|
|
{ value: convertedMinPrice, fromNumericBase: 'dec' }, |
|
|
|
{ value: convertedMinPrice, fromNumericBase: 'dec' }, |
|
|
|
{ value: convertedGasPrice, fromNumericBase: 'dec' } |
|
|
|
{ value: convertedGasPrice, fromNumericBase: 'dec' } |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
newGasPrice = conversionMax( |
|
|
|
|
|
|
|
{ value: gasPrice, fromNumericBase: 'hex' }, |
|
|
|
|
|
|
|
{ value: forceGasMin, fromNumericBase: 'hex' } |
|
|
|
|
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const convertedGasLimit = conversionUtil(gasLimit, { |
|
|
|
const convertedGasLimit = conversionUtil(gasLimit, { |
|
|
@ -302,7 +307,7 @@ CustomizeGasModal.prototype.render = function () { |
|
|
|
}, [t('cancel')]), |
|
|
|
}, [t('cancel')]), |
|
|
|
|
|
|
|
|
|
|
|
h(`div.send-v2__customize-gas__save${error ? '__error' : ''}.allcaps`, { |
|
|
|
h(`div.send-v2__customize-gas__save${error ? '__error' : ''}.allcaps`, { |
|
|
|
onClick: () => !error && this.save(gasPrice, gasLimit, gasTotal), |
|
|
|
onClick: () => !error && this.save(newGasPrice, gasLimit, gasTotal), |
|
|
|
}, [t('save')]), |
|
|
|
}, [t('save')]), |
|
|
|
]), |
|
|
|
]), |
|
|
|
|
|
|
|
|
|
|
|