@ant-design/web3-sui 1.0.0 → 1.0.2
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @ant-design/web3-sui
|
|
2
2
|
|
|
3
|
+
## 1.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c32f8e2]
|
|
8
|
+
- Updated dependencies [613b265]
|
|
9
|
+
- @ant-design/web3-common@1.14.0
|
|
10
|
+
- @ant-design/web3-assets@1.11.1
|
|
11
|
+
|
|
12
|
+
## 1.0.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 1091cfd: fix(sui,solana): Should return address after connect
|
|
17
|
+
- 804cf3e: docs: Update Sui doc
|
|
18
|
+
- Updated dependencies [c22eb4d]
|
|
19
|
+
- @ant-design/web3-assets@1.11.0
|
|
20
|
+
|
|
3
21
|
## 1.0.0
|
|
4
22
|
|
|
5
23
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -97,9 +97,15 @@ export const AntDesignWeb3ConfigProvider = ({
|
|
|
97
97
|
if (!foundWallet) {
|
|
98
98
|
throw new Error(`Can not find wallet ${wallet?.name}`);
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
const {
|
|
101
|
+
accounts
|
|
102
|
+
} = await connectAsync({
|
|
101
103
|
wallet: foundWallet
|
|
102
104
|
});
|
|
105
|
+
const connectedAccount = accounts[0];
|
|
106
|
+
return {
|
|
107
|
+
address: connectedAccount.address
|
|
108
|
+
};
|
|
103
109
|
},
|
|
104
110
|
disconnect: async () => {
|
|
105
111
|
await disconnectAsync();
|
|
@@ -105,9 +105,15 @@ const AntDesignWeb3ConfigProvider = ({
|
|
|
105
105
|
if (!foundWallet) {
|
|
106
106
|
throw new Error(`Can not find wallet ${wallet?.name}`);
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
const {
|
|
109
|
+
accounts
|
|
110
|
+
} = await connectAsync({
|
|
109
111
|
wallet: foundWallet
|
|
110
112
|
});
|
|
113
|
+
const connectedAccount = accounts[0];
|
|
114
|
+
return {
|
|
115
|
+
address: connectedAccount.address
|
|
116
|
+
};
|
|
111
117
|
},
|
|
112
118
|
disconnect: async () => {
|
|
113
119
|
await disconnectAsync();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ant-design/web3-sui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"main": "dist/lib/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"typings": "dist/esm/index.d.ts",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"debug": "^4.3.4",
|
|
41
|
-
"@ant-design/web3-
|
|
42
|
-
"@ant-design/web3-
|
|
41
|
+
"@ant-design/web3-assets": "1.11.1",
|
|
42
|
+
"@ant-design/web3-common": "1.14.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@mysten/dapp-kit": "^0.14.11",
|