Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/young-poets-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Extra gas buffer for quote and transfer transactions
1 change: 1 addition & 0 deletions packages/thirdweb/src/pay/buyWithCrypto/getQuote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions packages/thirdweb/src/pay/buyWithCrypto/getTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading