@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.js +8 -1
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +8 -1
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -252,7 +252,14 @@ function useChipiWallet(config3) {
|
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
254
|
const createWalletMutation = reactQuery.useMutation({
|
|
255
|
-
|
|
255
|
+
// P2.2 default flip (CHIPI -> SHHH, #301) reached ChipiSDK.createWallet
|
|
256
|
+
// but missed this hook, which kept minting legacy CHIPI v29 for callers
|
|
257
|
+
// that omitted walletType while the docs promised SHHH V8.4. Found by an
|
|
258
|
+
// integrator whose omitted-walletType wallet came back as class
|
|
259
|
+
// 0x053f4f87... on mainnet (2026-09-09). Passing the default explicitly
|
|
260
|
+
// is still right (the SDK honours explicit values); it just has to be
|
|
261
|
+
// the SAME default the SDK documents.
|
|
262
|
+
mutationFn: async ({ encryptKey, walletType = "SHHH" }) => {
|
|
256
263
|
if (!trimmedUserId) throw new Error("External user ID is required");
|
|
257
264
|
const bearerToken = await getBearerToken();
|
|
258
265
|
if (!bearerToken) throw new Error("Bearer token is required");
|