@ant-design/web3-sui 1.0.0 → 1.0.1

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,14 @@
1
1
  # @ant-design/web3-sui
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1091cfd: fix(sui,solana): Should return address after connect
8
+ - 804cf3e: docs: Update Sui doc
9
+ - Updated dependencies [c22eb4d]
10
+ - @ant-design/web3-assets@1.11.0
11
+
3
12
  ## 1.0.0
4
13
 
5
14
  ### Major Changes
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @ant-design/web3-solana
1
+ # @ant-design/web3-sui
2
2
 
3
3
  This package provides a [Sui](https://sui.io) adapter for [@ant-design/web3](https://www.npmjs.com/package/@ant-design/web3).
4
4
 
@@ -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
- await connectAsync({
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
- await connectAsync({
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.0",
3
+ "version": "1.0.1",
4
4
  "main": "dist/lib/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "typings": "dist/esm/index.d.ts",
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "debug": "^4.3.4",
41
41
  "@ant-design/web3-common": "1.13.0",
42
- "@ant-design/web3-assets": "1.10.2"
42
+ "@ant-design/web3-assets": "1.11.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@mysten/dapp-kit": "^0.14.11",