@dynamic-labs/ethereum 0.17.19 → 0.17.21
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,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
### [0.17.21](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.20...v0.17.21) (2023-07-06)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* metamask getConnectedAccounts triggering an infinite loop ([#2580](https://github.com/dynamic-labs/DynamicAuth/issues/2580)) ([b67e149](https://github.com/dynamic-labs/DynamicAuth/commit/b67e14985285fb28197adb8e8e1aab9c04506a2d))
|
|
8
|
+
|
|
9
|
+
### [0.17.20](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.19...v0.17.20) (2023-07-03)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* persist chain to WalletConnect session when changed in wallet ([#2556](https://github.com/dynamic-labs/DynamicAuth/issues/2556)) ([#2562](https://github.com/dynamic-labs/DynamicAuth/issues/2562)) ([0415e6d](https://github.com/dynamic-labs/DynamicAuth/commit/0415e6d055e860ab63ebf0d249ca9cdd71dfdb83))
|
|
15
|
+
|
|
2
16
|
### [0.17.19](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.18...v0.17.19) (2023-07-02)
|
|
3
17
|
|
|
4
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.21",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"ethers": "5.7.2",
|
|
33
33
|
"eventemitter3": "5.0.1",
|
|
34
34
|
"buffer": "6.0.3",
|
|
35
|
-
"@dynamic-labs/rpc-providers": "0.17.
|
|
36
|
-
"@dynamic-labs/types": "0.17.
|
|
37
|
-
"@dynamic-labs/utils": "0.17.
|
|
38
|
-
"@dynamic-labs/wallet-book": "0.17.
|
|
39
|
-
"@dynamic-labs/wallet-connector-core": "0.17.
|
|
35
|
+
"@dynamic-labs/rpc-providers": "0.17.21",
|
|
36
|
+
"@dynamic-labs/types": "0.17.21",
|
|
37
|
+
"@dynamic-labs/utils": "0.17.21",
|
|
38
|
+
"@dynamic-labs/wallet-book": "0.17.21",
|
|
39
|
+
"@dynamic-labs/wallet-connector-core": "0.17.21"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {}
|
|
42
42
|
}
|
|
@@ -146,6 +146,9 @@ class WalletConnectV2 extends EthWalletConnector.EthWalletConnector {
|
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
(_a = listeners.onChainChange) === null || _a === void 0 ? void 0 : _a.call(listeners, String(chainId));
|
|
149
|
+
// When a user switches network from their wallet, we need the provider to change network
|
|
150
|
+
// such that any future calls to `getNetwork` will return the correct network
|
|
151
|
+
this.switchNetwork({ networkChainId: chainId });
|
|
149
152
|
}
|
|
150
153
|
else if (name === 'accountsChanged') {
|
|
151
154
|
if (!Array.isArray(data)) {
|
|
@@ -137,6 +137,9 @@ class WalletConnectV2 extends EthWalletConnector {
|
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
139
|
(_a = listeners.onChainChange) === null || _a === void 0 ? void 0 : _a.call(listeners, String(chainId));
|
|
140
|
+
// When a user switches network from their wallet, we need the provider to change network
|
|
141
|
+
// such that any future calls to `getNetwork` will return the correct network
|
|
142
|
+
this.switchNetwork({ networkChainId: chainId });
|
|
140
143
|
}
|
|
141
144
|
else if (name === 'accountsChanged') {
|
|
142
145
|
if (!Array.isArray(data)) {
|