Skip to content

Commit c1d6bb7

Browse files
[Pay] Add extra gas buffer for quote and transfer transactions (#6693)
1 parent e9db59e commit c1d6bb7

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.changeset/young-poets-do.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Extra gas buffer for quote and transfer transactions

packages/thirdweb/src/pay/buyWithCrypto/getQuote.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ export async function getBuyWithCryptoQuote(
259259
data: data.transactionRequest.data as Hash,
260260
to: data.transactionRequest.to,
261261
value: BigInt(data.transactionRequest.value),
262+
extraGas: 50000n, // extra gas buffer
262263
},
263264
approvalData,
264265
swapDetails: {

packages/thirdweb/src/pay/buyWithCrypto/getTransfer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export async function getBuyWithCryptoTransfer(
155155
data: data.transactionRequest.data as Hash,
156156
to: data.transactionRequest.to as Address,
157157
value: BigInt(data.transactionRequest.value),
158+
extraGas: 50000n, // extra gas buffer
158159
},
159160
approvalData: data.approval,
160161
fromAddress: data.fromAddress,

0 commit comments

Comments
 (0)