@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/hooks.js
CHANGED
|
@@ -202,7 +202,14 @@ function useChipiWallet(config3) {
|
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
204
|
const createWalletMutation = reactQuery.useMutation({
|
|
205
|
-
|
|
205
|
+
// P2.2 default flip (CHIPI -> SHHH, #301) reached ChipiSDK.createWallet
|
|
206
|
+
// but missed this hook, which kept minting legacy CHIPI v29 for callers
|
|
207
|
+
// that omitted walletType while the docs promised SHHH V8.4. Found by an
|
|
208
|
+
// integrator whose omitted-walletType wallet came back as class
|
|
209
|
+
// 0x053f4f87... on mainnet (2026-09-09). Passing the default explicitly
|
|
210
|
+
// is still right (the SDK honours explicit values); it just has to be
|
|
211
|
+
// the SAME default the SDK documents.
|
|
212
|
+
mutationFn: async ({ encryptKey, walletType = "SHHH" }) => {
|
|
206
213
|
if (!trimmedUserId) throw new Error("External user ID is required");
|
|
207
214
|
const bearerToken = await getBearerToken();
|
|
208
215
|
if (!bearerToken) throw new Error("Bearer token is required");
|