1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 20:39:08 +01:00

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

This commit is contained in:
Alex Donesky 2021-08-03 10:56:49 -05:00 committed by Dan Miller
parent 29072a0cf0
commit 340c3d2876

View File

@ -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,
}),
)}