@openfort/react-native 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,7 +119,10 @@ export function useEmbeddedEthereumWallet(options = {}) {
119
119
  const accounts = await client.embeddedWallet.list({
120
120
  limit: 100,
121
121
  chainType: ChainTypeEnum.EVM,
122
- accountType: walletConfig?.accountType === AccountTypeEnum.EOA ? undefined : AccountTypeEnum.SMART_ACCOUNT,
122
+ accountType: walletConfig?.accountType === AccountTypeEnum.EOA ||
123
+ walletConfig?.accountType === AccountTypeEnum.DELEGATED_ACCOUNT
124
+ ? undefined
125
+ : walletConfig?.accountType || AccountTypeEnum.SMART_ACCOUNT,
123
126
  });
124
127
  // Filter for Ethereum accounts only
125
128
  setEmbeddedAccounts(accounts);
@@ -287,7 +290,7 @@ export function useEmbeddedEthereumWallet(options = {}) {
287
290
  }
288
291
  // Build recovery params
289
292
  const recoveryParams = await buildRecoveryParams({ ...createOptions, userId: user?.id }, walletConfig);
290
- const accountType = createOptions?.accountType || walletConfig?.accountType || AccountTypeEnum.SMART_ACCOUNT;
293
+ const accountType = createOptions?.accountType || walletConfig?.accountType || AccountTypeEnum.EOA;
291
294
  // Create embedded wallet
292
295
  const embeddedAccount = await client.embeddedWallet.create({
293
296
  chainId: accountType === AccountTypeEnum.EOA ? undefined : chainId,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfort/react-native",
3
3
  "main": "dist/index.js",
4
- "version": "1.0.9",
4
+ "version": "1.0.10",
5
5
  "license": "MIT",
6
6
  "description": "React Native SDK for Openfort platform integration",
7
7
  "repository": {