From b879bf135979c45626f7a3e972eb87b3f945c524 Mon Sep 17 00:00:00 2001 From: Daniel <80175477+dan437@users.noreply.github.com> Date: Thu, 10 Mar 2022 04:17:57 +0100 Subject: [PATCH] Set up the right gasLimit for STX (#13891) * Set up the right gasLimit for STX * Trigger Build Co-authored-by: Dan J Miller --- ui/ducks/swaps/swaps.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/ducks/swaps/swaps.js b/ui/ducks/swaps/swaps.js index 84d26b2a2..02d442951 100644 --- a/ui/ducks/swaps/swaps.js +++ b/ui/ducks/swaps/swaps.js @@ -915,6 +915,9 @@ export const signAndSendSwapsSmartTransaction = ({ const smartTransactionFees = await dispatch( fetchSwapsSmartTransactionFees(unsignedTransaction), ); + unsignedTransaction.gas = `0x${decimalToHex( + smartTransactionFees?.gasLimit || 0, + )}`; const uuid = await dispatch( signAndSendSmartTransaction({ unsignedTransaction,