@dynamic-labs/ethereum 0.18.17 → 0.18.18

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,16 @@
1
1
 
2
+ ### [0.18.18](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.17...v0.18.18) (2023-09-20)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * show default wallet icon when no image is available ([#3291](https://github.com/dynamic-labs/DynamicAuth/issues/3289)) ([b541d00](https://github.com/dynamic-labs/DynamicAuth/commit/3f7249997f0f0f20a449b94cfa307305a0684052))
8
+ * display user profile when closing send balance ([#3333](https://github.com/dynamic-labs/DynamicAuth/issues/3333)) ([#3336](https://github.com/dynamic-labs/DynamicAuth/issues/3336)) ([6966aee](https://github.com/dynamic-labs/DynamicAuth/commit/6966aee9480c630fc83a07b7eff69fde15fe0a05))
9
+ * display sign typed data message for confirmation ([#3316](https://github.com/dynamic-labs/DynamicAuth/issues/3316)) ([4b93151](https://github.com/dynamic-labs/DynamicAuth/commit/4b9315178711b4c86fdd2af403b271276ca9d4be))
10
+ * remove async from getWeb3Provider method in Magic connector ([#3280](https://github.com/dynamic-labs/DynamicAuth/issues/3280)) ([bffe17c](https://github.com/dynamic-labs/DynamicAuth/commit/bffe17c690076d77296f847628cca0cdeae4e529))
11
+ * fixes unlinking oauth account from multi wallet panel ([#3343](https://github.com/dynamic-labs/DynamicAuth/issues/3343)) ([f46c9ab](https://github.com/dynamic-labs/DynamicAuth/commit/f46c9ab521665be875e65c78e6d235e5fdb697a0))
12
+ * prevent wallet connect v2 from redirect user to last known wallet after logout ([#3353](https://github.com/dynamic-labs/DynamicAuth/issues/3353)) ([55b01b6](https://github.com/dynamic-labs/DynamicAuth/commit/55b01b6d0e7f0f7c3d9fce461bb09bb61602e60f))
13
+
2
14
  ### [0.18.17](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.16...v0.18.17) (2023-09-11)
3
15
 
4
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "0.18.17",
3
+ "version": "0.18.18",
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.18.17",
36
- "@dynamic-labs/types": "0.18.17",
37
- "@dynamic-labs/utils": "0.18.17",
38
- "@dynamic-labs/wallet-book": "0.18.17",
39
- "@dynamic-labs/wallet-connector-core": "0.18.17",
35
+ "@dynamic-labs/rpc-providers": "0.18.18",
36
+ "@dynamic-labs/types": "0.18.18",
37
+ "@dynamic-labs/utils": "0.18.18",
38
+ "@dynamic-labs/wallet-book": "0.18.18",
39
+ "@dynamic-labs/wallet-connector-core": "0.18.18",
40
40
  "@ethersproject/providers": "5.7.2"
41
41
  },
42
42
  "peerDependencies": {}
@@ -373,9 +373,11 @@ class WalletConnectV2 extends EthWalletConnector.EthWalletConnector {
373
373
  }
374
374
  getConnectedAccounts() {
375
375
  return _tslib.__awaiter(this, void 0, void 0, function* () {
376
- yield this.initProvider();
377
- this.refreshSession();
378
- this.isInitialized = true;
376
+ if (this.isInitialized === false) {
377
+ yield this.initProvider();
378
+ this.refreshSession();
379
+ this.isInitialized = true;
380
+ }
379
381
  if (!this.activeAccount) {
380
382
  return [];
381
383
  }
@@ -364,9 +364,11 @@ class WalletConnectV2 extends EthWalletConnector {
364
364
  }
365
365
  getConnectedAccounts() {
366
366
  return __awaiter(this, void 0, void 0, function* () {
367
- yield this.initProvider();
368
- this.refreshSession();
369
- this.isInitialized = true;
367
+ if (this.isInitialized === false) {
368
+ yield this.initProvider();
369
+ this.refreshSession();
370
+ this.isInitialized = true;
371
+ }
370
372
  if (!this.activeAccount) {
371
373
  return [];
372
374
  }