From 340c3d2876c98d9f77d081ac0fb981fa1719e327 Mon Sep 17 00:00:00 2001 From: Alex Donesky Date: Tue, 3 Aug 2021 10:56:49 -0500 Subject: [PATCH] Add gasPrice to be used on non-1559 networks for transaction details on confirm screen (#11741) --- .../confirm-transaction-base.component.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/pages/confirm-transaction-base/confirm-transaction-base.component.js b/ui/pages/confirm-transaction-base/confirm-transaction-base.component.js index 96cf67903..35a855e47 100644 --- a/ui/pages/confirm-transaction-base/confirm-transaction-base.component.js +++ b/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, }), )}