Add max gas limit to UI

feature/default_network_editable
Kevin Serrano 8 years ago
parent 26fd016b63
commit 51b5e2f6e7
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
  1. 2
      ui/app/components/pending-tx.js

@ -47,6 +47,7 @@ PendingTx.prototype.render = function () {
// Gas
const gas = txParams.gas
const gasBn = hexToBn(gas)
const safeGasLimit = parseInt(txMeta.blockGasLimit)
// Gas Price
const gasPrice = txParams.gasPrice || MIN_GAS_PRICE_BN.toString(16)
@ -159,6 +160,7 @@ PendingTx.prototype.render = function () {
scale: 0,
// The hard lower limit for gas.
min: MIN_GAS_LIMIT_BN.toString(10),
max: safeGasLimit,
suffix: 'UNITS',
style: {
position: 'relative',

Loading…
Cancel
Save