From 61de2cd8ed896b52397012b92c3c97c480dddfc4 Mon Sep 17 00:00:00 2001 From: digiwand <20778143+digiwand@users.noreply.github.com> Date: Mon, 29 Apr 2024 19:38:57 +0400 Subject: [PATCH] fix: getMinimumGasTotalInHexWei error when gasEstimateType === "fee_market" --- ui/selectors/confirm-transaction.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/selectors/confirm-transaction.js b/ui/selectors/confirm-transaction.js index fc56a07c64b5..8e7ceb527185 100644 --- a/ui/selectors/confirm-transaction.js +++ b/ui/selectors/confirm-transaction.js @@ -253,6 +253,7 @@ export const transactionFeeSelector = function (state, txData) { } } else { switch (gasEstimateType) { + case GasEstimateTypes.feeMarket: case GasEstimateTypes.none: gasEstimationObject.gasPrice = txData.txParams?.gasPrice ?? '0x0'; break; @@ -265,8 +266,6 @@ export const transactionFeeSelector = function (state, txData) { gasEstimationObject.gasPrice = txData.txParams?.gasPrice ?? getAveragePriceEstimateInHexWEI(state); break; - case GasEstimateTypes.feeMarket: - break; default: break; }