@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/index.mjs CHANGED
@@ -228,7 +228,14 @@ function useChipiWallet(config3) {
228
228
  }
229
229
  });
230
230
  const createWalletMutation = useMutation({
231
- mutationFn: async ({ encryptKey, walletType = "CHIPI" }) => {
231
+ // P2.2 default flip (CHIPI -> SHHH, #301) reached ChipiSDK.createWallet
232
+ // but missed this hook, which kept minting legacy CHIPI v29 for callers
233
+ // that omitted walletType while the docs promised SHHH V8.4. Found by an
234
+ // integrator whose omitted-walletType wallet came back as class
235
+ // 0x053f4f87... on mainnet (2026-09-09). Passing the default explicitly
236
+ // is still right (the SDK honours explicit values); it just has to be
237
+ // the SAME default the SDK documents.
238
+ mutationFn: async ({ encryptKey, walletType = "SHHH" }) => {
232
239
  if (!trimmedUserId) throw new Error("External user ID is required");
233
240
  const bearerToken = await getBearerToken();
234
241
  if (!bearerToken) throw new Error("Bearer token is required");