diff --git a/.changeset/young-poets-do.md b/.changeset/young-poets-do.md new file mode 100644 index 00000000000..1613567988d --- /dev/null +++ b/.changeset/young-poets-do.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +Extra gas buffer for quote and transfer transactions diff --git a/packages/thirdweb/src/pay/buyWithCrypto/getQuote.ts b/packages/thirdweb/src/pay/buyWithCrypto/getQuote.ts index 7a13855daea..47a0774707b 100644 --- a/packages/thirdweb/src/pay/buyWithCrypto/getQuote.ts +++ b/packages/thirdweb/src/pay/buyWithCrypto/getQuote.ts @@ -259,6 +259,7 @@ export async function getBuyWithCryptoQuote( data: data.transactionRequest.data as Hash, to: data.transactionRequest.to, value: BigInt(data.transactionRequest.value), + extraGas: 50000n, // extra gas buffer }, approvalData, swapDetails: { diff --git a/packages/thirdweb/src/pay/buyWithCrypto/getTransfer.ts b/packages/thirdweb/src/pay/buyWithCrypto/getTransfer.ts index 0ef6358b274..616b03a40db 100644 --- a/packages/thirdweb/src/pay/buyWithCrypto/getTransfer.ts +++ b/packages/thirdweb/src/pay/buyWithCrypto/getTransfer.ts @@ -155,6 +155,7 @@ export async function getBuyWithCryptoTransfer( data: data.transactionRequest.data as Hash, to: data.transactionRequest.to as Address, value: BigInt(data.transactionRequest.value), + extraGas: 50000n, // extra gas buffer }, approvalData: data.approval, fromAddress: data.fromAddress,