File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
packages/thirdweb/src/pay/buyWithCrypto Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " thirdweb " : patch
3+ ---
4+
5+ Extra gas buffer for quote and transfer transactions
Original file line number Diff line number Diff 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 : {
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments