File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
packages/thirdweb/src/wallets/native Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Fix react native inAppWallet creation
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import type { WCSupportedWalletIds } from "../__generated__/wallet-ids.js";
8
8
import { coinbaseWalletSDK } from "../coinbase/coinbase-wallet.js" ;
9
9
import { getCoinbaseMobileProvider } from "../coinbase/coinbaseMobileSDK.js" ;
10
10
import { COINBASE } from "../constants.js" ;
11
+ import { inAppWallet } from "../in-app/native/in-app.js" ;
11
12
import type { Account , Wallet } from "../interfaces/wallet.js" ;
12
13
import { smartWallet } from "../smart/smart-wallet.js" ;
13
14
import type { WCConnectOptions } from "../wallet-connect/types.js" ;
@@ -54,11 +55,9 @@ export function createWallet<const ID extends WalletId>(
54
55
*/
55
56
case "embedded" :
56
57
case "inApp" : {
57
- // TODO pass RN connector
58
- throw new Error ( "TODO" ) ;
59
- // return inAppWallet(
60
- // creationOptions as CreateWalletArgs<"inApp">[1],
61
- // ) as Wallet<ID>;
58
+ return inAppWallet (
59
+ creationOptions as CreateWalletArgs < "inApp" > [ 1 ] ,
60
+ ) as Wallet < ID > ;
62
61
}
63
62
64
63
/**
You can’t perform that action at this time.
0 commit comments