mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add gasPrice to be used on non-1559 networks for transaction details on confirm screen (#11741)
This commit is contained in:
parent
fba662ca2b
commit
a4927a30ac
@ -385,7 +385,9 @@ export default class ConfirmTransactionBase extends Component {
|
|||||||
key="gas-subtext"
|
key="gas-subtext"
|
||||||
type={SECONDARY}
|
type={SECONDARY}
|
||||||
value={getHexGasTotal({
|
value={getHexGasTotal({
|
||||||
gasPrice: txData.txParams.maxFeePerGas,
|
gasPrice:
|
||||||
|
txData.txParams.maxFeePerGas ??
|
||||||
|
txData.txParams.gasPrice,
|
||||||
gasLimit: txData.txParams.gas,
|
gasLimit: txData.txParams.gas,
|
||||||
})}
|
})}
|
||||||
hideLabel
|
hideLabel
|
||||||
@ -430,7 +432,9 @@ export default class ConfirmTransactionBase extends Component {
|
|||||||
value={addHexes(
|
value={addHexes(
|
||||||
txData.txParams.value,
|
txData.txParams.value,
|
||||||
getHexGasTotal({
|
getHexGasTotal({
|
||||||
gasPrice: txData.txParams.maxFeePerGas,
|
gasPrice:
|
||||||
|
txData.txParams.maxFeePerGas ??
|
||||||
|
txData.txParams.gasPrice,
|
||||||
gasLimit: txData.txParams.gas,
|
gasLimit: txData.txParams.gas,
|
||||||
}),
|
}),
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user