code duplication

pull/1432/head
yann300 3 years ago committed by Aniket
parent 7545b7ce82
commit f82e5d4b09
  1. 2
      apps/remix-ide/src/app/ui/confirmDialog.js

@ -112,7 +112,7 @@ function confirmDialog (tx, network, amount, gasEstimation, newGasPriceCb, initi
el.querySelector('#gasprice').value = gasPriceValue
onGasPriceChange()
}
if (el.querySelector('#maxfee') && network && network.lastBlock && network.lastBlock.baseFeePerGas && el.querySelector('#maxfee')) {
if (el.querySelector('#maxfee') && network && network.lastBlock && network.lastBlock.baseFeePerGas) {
el.querySelector('#maxfee').value = parseInt(network.lastBlock.baseFeePerGas, 16)
onMaxFeeChange()
}

Loading…
Cancel
Save