@gelatonetwork/smartwallet-react-privy 0.0.14 → 0.0.16

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gelatonetwork/smartwallet-react-privy",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "author": "Gelato",
5
5
  "type": "module",
6
6
  "description": "Context provider supporting Privy WaaS",
@@ -11,8 +11,8 @@
11
11
  "typescript": "^5.3",
12
12
  "viem": "~2.29",
13
13
  "wagmi": "~2.15",
14
- "@gelatonetwork/smartwallet": "0.0.14",
15
- "@gelatonetwork/smartwallet-react-types": "0.0.14"
14
+ "@gelatonetwork/smartwallet": "0.0.16",
15
+ "@gelatonetwork/smartwallet-react-types": "0.0.16"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "typescript": {
@@ -32,8 +32,8 @@
32
32
  "viem": "~2.29",
33
33
  "wagmi": "~2.15",
34
34
  "zod": "3.24.4",
35
- "@gelatonetwork/smartwallet": "0.0.14",
36
- "@gelatonetwork/smartwallet-react-types": "0.0.14"
35
+ "@gelatonetwork/smartwallet": "0.0.16",
36
+ "@gelatonetwork/smartwallet-react-types": "0.0.16"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/react": "^18.3",
package/src/provider.tsx CHANGED
@@ -95,8 +95,11 @@ const GelatoSmartWalletPrivyInternal: FC<{
95
95
  try {
96
96
  // Privy wallet provides chainId in CAIP2 format
97
97
  const { reference: chainId } = ChainId.parse(primaryWallet.chainId);
98
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
99
- const chain = extractChain({ chains: Object.values(chains), id: Number(chainId) as any });
98
+ const chain = extractChain({
99
+ chains: Object.values(chains),
100
+ // biome-ignore lint/suspicious/noExplicitAny: <explanation>
101
+ id: Number(chainId) as any
102
+ });
100
103
 
101
104
  if (!chain) {
102
105
  return;
@@ -168,7 +171,9 @@ export const GelatoSmartWalletPrivyContextProvider: FC<GelatoSmartWalletPrivyCon
168
171
  <PrivyProvider
169
172
  appId={settings.waas.appId}
170
173
  config={{
171
- defaultChain: settings.defaultChain ?? settings.wagmi?.config?.chains?.[0] ?? chains.sepolia
174
+ defaultChain:
175
+ settings.defaultChain ?? settings.wagmi?.config?.chains?.[0] ?? chains.sepolia,
176
+ supportedChains: settings.supportedChains
172
177
  }}
173
178
  >
174
179
  <GelatoSmartWalletPrivyInternal