Skip to content

Commit

Permalink
fix: inApp native wallet creation (#3345)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquim-verges committed Jun 17, 2024
1 parent 4dce62d commit 79e6a04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/poor-hotels-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Fix react native inAppWallet creation
9 changes: 4 additions & 5 deletions packages/thirdweb/src/wallets/native/create-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type { WCSupportedWalletIds } from "../__generated__/wallet-ids.js";
import { coinbaseWalletSDK } from "../coinbase/coinbase-wallet.js";
import { getCoinbaseMobileProvider } from "../coinbase/coinbaseMobileSDK.js";
import { COINBASE } from "../constants.js";
import { inAppWallet } from "../in-app/native/in-app.js";
import type { Account, Wallet } from "../interfaces/wallet.js";
import { smartWallet } from "../smart/smart-wallet.js";
import type { WCConnectOptions } from "../wallet-connect/types.js";
Expand Down Expand Up @@ -54,11 +55,9 @@ export function createWallet<const ID extends WalletId>(
*/
case "embedded":
case "inApp": {
// TODO pass RN connector
throw new Error("TODO");
// return inAppWallet(
// creationOptions as CreateWalletArgs<"inApp">[1],
// ) as Wallet<ID>;
return inAppWallet(
creationOptions as CreateWalletArgs<"inApp">[1],
) as Wallet<ID>;
}

/**
Expand Down

0 comments on commit 79e6a04

Please sign in to comment.