From 29579061010818c4f79b01c977e914a7c991a983 Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Mon, 4 Jan 2021 14:43:44 -0330 Subject: [PATCH] Ensure that gas for swap tx submitted at same time as approval is in hex (#10135) --- ui/app/ducks/swaps/swaps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/ducks/swaps/swaps.js b/ui/app/ducks/swaps/swaps.js index f6d36c204..876bd50ec 100644 --- a/ui/app/ducks/swaps/swaps.js +++ b/ui/app/ducks/swaps/swaps.js @@ -606,7 +606,7 @@ export const signAndSendTransactions = (history, metaMetricsEvent) => { customSwapsGas || (usedQuote?.gasEstimate ? estimatedGasLimitWithMultiplier - : usedQuote?.maxGas) + : `0x${decimalToHex(usedQuote?.maxGas || 0)}`) const usedGasPrice = getUsedSwapsGasPrice(state) usedTradeTxParams.gas = maxGasLimit