Skip to content

Commit

Permalink
fix: getMinimumGasTotalInHexWei error when gasEstimateType === "fee_m…
Browse files Browse the repository at this point in the history
…arket"
  • Loading branch information
digiwand committed Apr 29, 2024
1 parent 6e20c04 commit 61de2cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/selectors/confirm-transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -265,8 +266,6 @@ export const transactionFeeSelector = function (state, txData) {
gasEstimationObject.gasPrice =
txData.txParams?.gasPrice ?? getAveragePriceEstimateInHexWEI(state);
break;
case GasEstimateTypes.feeMarket:
break;
default:
break;
}
Expand Down

0 comments on commit 61de2cd

Please sign in to comment.