From 429a2af66e12e0a253870aa88548e808bbf8a348 Mon Sep 17 00:00:00 2001 From: Khushboo Mehta Date: Thu, 4 Jul 2024 17:39:17 +0200 Subject: [PATCH] feat(@desktop/wallet): Display for L1 fees on a transaction as per design fixes #14208 --- ui/imports/shared/popups/send/controls/GasSelector.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/imports/shared/popups/send/controls/GasSelector.qml b/ui/imports/shared/popups/send/controls/GasSelector.qml index 20f59f6aeb..a65585528a 100644 --- a/ui/imports/shared/popups/send/controls/GasSelector.qml +++ b/ui/imports/shared/popups/send/controls/GasSelector.qml @@ -50,11 +50,13 @@ Item { statusListItemIcon.opacity: modelData.isFirstSimpleTx title: qsTr("%1 transaction fee").arg(root.getNetworkName(modelData.fromNetwork)) subTitle: { - let fee = root.formatCurrencyAmount(totalGasAmountEth, Constants.ethToken) + let primaryFee = root.formatCurrencyAmount(totalGasAmountEth, Constants.ethToken) if (modelData.gasFees.eip1559Enabled && modelData.gasFees.l1GasFee > 0) { - fee += "\n(L1 %1)".arg(root.formatCurrencyAmount(totalGasAmountL1Eth, Constants.ethToken)) + return qsTr("L1 fee: %1\nL2 fee: %2") + .arg(root.formatCurrencyAmount(totalGasAmountL1Eth, Constants.ethToken)) + .arg(primaryFee) } - return fee + return primaryFee } property double totalGasAmountL1Eth: { const l1FeeInGWei = modelData.gasFees.l1GasFee