timelock-sdk 0.0.97 → 0.0.99
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/{client-uwDDNqle.d.cts → client-DfYiZw0g.d.ts} +4 -4
- package/dist/{client--LwyAjN0.d.ts → client-JOGxwcn5.d.cts} +264 -264
- package/dist/client.cjs +2 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +2 -1
- package/dist/client.js.map +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -959,7 +959,8 @@ const usePerpsOperator = () => {
|
|
|
959
959
|
operator,
|
|
960
960
|
address,
|
|
961
961
|
signMessage: (0, __tanstack_react_query.useMutation)({ mutationFn: async () => {
|
|
962
|
-
if (!operator
|
|
962
|
+
if (!operator) throw new Error("Operator not initialized");
|
|
963
|
+
if (!userAddr) throw new Error("Wallet not connected");
|
|
963
964
|
const message = await operator.genAuthMessage(userAddr);
|
|
964
965
|
const signature = await signMessageAsync({ message });
|
|
965
966
|
saveSignature(userAddr, message, signature);
|