Add gasPrice to be used on non-1559 networks for transaction details on confirm screen (#11741)

feature/default_network_editable
Alex Donesky 3 years ago committed by Dan Miller
parent 29072a0cf0
commit 340c3d2876
  1. 8
      ui/pages/confirm-transaction-base/confirm-transaction-base.component.js

@ -385,7 +385,9 @@ export default class ConfirmTransactionBase extends Component {
key="gas-subtext"
type={SECONDARY}
value={getHexGasTotal({
gasPrice: txData.txParams.maxFeePerGas,
gasPrice:
txData.txParams.maxFeePerGas ??
txData.txParams.gasPrice,
gasLimit: txData.txParams.gas,
})}
hideLabel
@ -430,7 +432,9 @@ export default class ConfirmTransactionBase extends Component {
value={addHexes(
txData.txParams.value,
getHexGasTotal({
gasPrice: txData.txParams.maxFeePerGas,
gasPrice:
txData.txParams.maxFeePerGas ??
txData.txParams.gasPrice,
gasLimit: txData.txParams.gas,
}),
)}

Loading…
Cancel
Save