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:
parent
29072a0cf0
commit
340c3d2876
@ -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…
Reference in New Issue
Block a user