Skip to content

Commit 9cefe5f

Browse files
authored
Crypto test mode use send transaction (#4444)
1 parent e7bf498 commit 9cefe5f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/eighty-poets-doubt.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+
Add buyWithCrypto testMode in useSendTransaction

packages/thirdweb/src/react/core/hooks/transaction/useSendTransaction.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ export type SendTransactionPayModalConfig =
4545
locale?: LocaleId;
4646
supportedTokens?: SupportedTokens;
4747
theme?: Theme | "light" | "dark";
48-
buyWithCrypto?: false;
48+
buyWithCrypto?:
49+
| false
50+
| {
51+
testMode?: boolean;
52+
};
4953
buyWithFiat?:
5054
| false
5155
| {

0 commit comments

Comments
 (0)