@cometh/connect-react-hooks 0.0.6-dev.1 → 0.0.6
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.cjs +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -65,7 +65,7 @@ async function createSmartAccount(config) {
|
|
|
65
65
|
rpcUrl
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
const address =
|
|
68
|
+
const address = client.account.address;
|
|
69
69
|
return { client, address };
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -1609,14 +1609,14 @@ var useAddWhitelistDestination = (mutationProps) => {
|
|
|
1609
1609
|
{
|
|
1610
1610
|
mutationFn: async ({
|
|
1611
1611
|
sessionKey,
|
|
1612
|
-
|
|
1612
|
+
destination
|
|
1613
1613
|
}) => {
|
|
1614
1614
|
if (!smartAccountClient) {
|
|
1615
1615
|
throw new Error("No smart account found");
|
|
1616
1616
|
}
|
|
1617
1617
|
return await smartAccountClient.addWhitelistDestination({
|
|
1618
1618
|
sessionKey,
|
|
1619
|
-
|
|
1619
|
+
destination
|
|
1620
1620
|
});
|
|
1621
1621
|
},
|
|
1622
1622
|
...mutationProps
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -65,7 +65,7 @@ async function createSmartAccount(config) {
|
|
|
65
65
|
rpcUrl
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
const address =
|
|
68
|
+
const address = client.account.address;
|
|
69
69
|
return { client, address };
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -1609,14 +1609,14 @@ var useAddWhitelistDestination = (mutationProps) => {
|
|
|
1609
1609
|
{
|
|
1610
1610
|
mutationFn: async ({
|
|
1611
1611
|
sessionKey,
|
|
1612
|
-
|
|
1612
|
+
destination
|
|
1613
1613
|
}) => {
|
|
1614
1614
|
if (!smartAccountClient) {
|
|
1615
1615
|
throw new Error("No smart account found");
|
|
1616
1616
|
}
|
|
1617
1617
|
return await smartAccountClient.addWhitelistDestination({
|
|
1618
1618
|
sessionKey,
|
|
1619
|
-
|
|
1619
|
+
destination
|
|
1620
1620
|
});
|
|
1621
1621
|
},
|
|
1622
1622
|
...mutationProps
|
package/package.json
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
"url": "https://twitter.com/slovaye"
|
|
8
8
|
}
|
|
9
9
|
],
|
|
10
|
-
"version": "0.0.6
|
|
10
|
+
"version": "0.0.6",
|
|
11
11
|
"description": "React hooks Connect 4337",
|
|
12
|
-
"repository": "https://github.com/cometh-
|
|
12
|
+
"repository": "https://github.com/cometh-hq/connect-sdk-4337.git",
|
|
13
13
|
"keywords": [
|
|
14
14
|
"react",
|
|
15
15
|
"hooks",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"typescript": "^5"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@cometh/connect-sdk-4337": "0.1.
|
|
61
|
+
"@cometh/connect-sdk-4337": "0.1.7",
|
|
62
62
|
"permissionless": "0.1.31"
|
|
63
63
|
}
|
|
64
64
|
}
|