@chipi-stack/chipi-react 14.12.1 → 14.13.0

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/dist/hooks.mjs CHANGED
@@ -180,7 +180,14 @@ function useChipiWallet(config3) {
180
180
  }
181
181
  });
182
182
  const createWalletMutation = useMutation({
183
- mutationFn: async ({ encryptKey, walletType = "CHIPI" }) => {
183
+ // P2.2 default flip (CHIPI -> SHHH, #301) reached ChipiSDK.createWallet
184
+ // but missed this hook, which kept minting legacy CHIPI v29 for callers
185
+ // that omitted walletType while the docs promised SHHH V8.4. Found by an
186
+ // integrator whose omitted-walletType wallet came back as class
187
+ // 0x053f4f87... on mainnet (2026-09-09). Passing the default explicitly
188
+ // is still right (the SDK honours explicit values); it just has to be
189
+ // the SAME default the SDK documents.
190
+ mutationFn: async ({ encryptKey, walletType = "SHHH" }) => {
184
191
  if (!trimmedUserId) throw new Error("External user ID is required");
185
192
  const bearerToken = await getBearerToken();
186
193
  if (!bearerToken) throw new Error("Bearer token is required");