Ensure that gas for swap tx submitted at same time as approval is in hex (#10135)

feature/default_network_editable
Dan J Miller 4 years ago committed by GitHub
parent d55f579447
commit 2957906101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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

Loading…
Cancel
Save