Commit f82e5d4b authored by yann300's avatar yann300 Committed by Aniket

code duplication

parent 7545b7ce
...@@ -112,7 +112,7 @@ function confirmDialog (tx, network, amount, gasEstimation, newGasPriceCb, initi ...@@ -112,7 +112,7 @@ function confirmDialog (tx, network, amount, gasEstimation, newGasPriceCb, initi
el.querySelector('#gasprice').value = gasPriceValue el.querySelector('#gasprice').value = gasPriceValue
onGasPriceChange() 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) el.querySelector('#maxfee').value = parseInt(network.lastBlock.baseFeePerGas, 16)
onMaxFeeChange() onMaxFeeChange()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment