Skip to content

Commit 79e6a04

Browse files
fix: inApp native wallet creation (#3345)
1 parent 4dce62d commit 79e6a04

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.changeset/poor-hotels-sip.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+
Fix react native inAppWallet creation

packages/thirdweb/src/wallets/native/create-wallet.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type { WCSupportedWalletIds } from "../__generated__/wallet-ids.js";
88
import { coinbaseWalletSDK } from "../coinbase/coinbase-wallet.js";
99
import { getCoinbaseMobileProvider } from "../coinbase/coinbaseMobileSDK.js";
1010
import { COINBASE } from "../constants.js";
11+
import { inAppWallet } from "../in-app/native/in-app.js";
1112
import type { Account, Wallet } from "../interfaces/wallet.js";
1213
import { smartWallet } from "../smart/smart-wallet.js";
1314
import type { WCConnectOptions } from "../wallet-connect/types.js";
@@ -54,11 +55,9 @@ export function createWallet<const ID extends WalletId>(
5455
*/
5556
case "embedded":
5657
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>;
6261
}
6362

6463
/**

0 commit comments

Comments
 (0)