@dynamic-labs/ethers-v6 0.19.0-alpha.28 → 0.19.0

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,26 @@
1
1
 
2
+ ## [0.19.0](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.28...v0.19.0) (2023-10-31)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * rename onConnectSuccess to onConnect (#3744)
8
+
9
+ ### Features
10
+
11
+ * adding editable copy for sdk views ([#3749](https://github.com/dynamic-labs/DynamicAuth/issues/3749)) ([8e745b7](https://github.com/dynamic-labs/DynamicAuth/commit/8e745b7d937f08156dd74229393e57647427c278))
12
+ * rename onConnectSuccess to onConnect ([#3744](https://github.com/dynamic-labs/DynamicAuth/issues/3744)) ([d5403c0](https://github.com/dynamic-labs/DynamicAuth/commit/d5403c0d07c3528376d69e406a3a1d13a012a8de))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * never show default social provider duplicated ([#3768](https://github.com/dynamic-labs/DynamicAuth/issues/3768)) ([524e97e](https://github.com/dynamic-labs/DynamicAuth/commit/524e97e02d31b626040dff76235e5f9d1bf95c49))
18
+ * properly interpolate string in translation for countdown ([#3763](https://github.com/dynamic-labs/DynamicAuth/issues/3763)) ([272a45d](https://github.com/dynamic-labs/DynamicAuth/commit/272a45da89dd8af5043f014f1353b88fbd220a02))
19
+ * **send-balance:** remove transaction type and let viem set it ([#3747](https://github.com/dynamic-labs/DynamicAuth/issues/3747)) ([43d0831](https://github.com/dynamic-labs/DynamicAuth/commit/43d0831f3111c3d4992ac92f0a0f68f10fab1120))
20
+ * set global loading to false on logout ([#3774](https://github.com/dynamic-labs/DynamicAuth/issues/3774)) ([3e99675](https://github.com/dynamic-labs/DynamicAuth/commit/3e99675911809ec0c7a19693a9e67dad19a1ad68))
21
+ * **sign-message:** handle collection in sign typed data ([#3748](https://github.com/dynamic-labs/DynamicAuth/issues/3748)) ([bd6bdf7](https://github.com/dynamic-labs/DynamicAuth/commit/bd6bdf7cef3fbdcfa5fea31bc3a013f7cbf41ba7))
22
+ * **turnkey:** use transporter to request use confirmation ([#3758](https://github.com/dynamic-labs/DynamicAuth/issues/3758)) ([afc5636](https://github.com/dynamic-labs/DynamicAuth/commit/afc56363c6a237907bdf48d2309c72a531e3a316))
23
+
2
24
  ## [0.19.0-alpha.28](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.27...v0.19.0-alpha.28) (2023-10-26)
3
25
 
4
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethers-v6",
3
- "version": "0.19.0-alpha.28",
3
+ "version": "0.19.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -30,6 +30,6 @@
30
30
  "ethers": "^6"
31
31
  },
32
32
  "dependencies": {
33
- "@dynamic-labs/wallet-connector-core": "0.19.0-alpha.28"
33
+ "@dynamic-labs/wallet-connector-core": "0.19.0"
34
34
  }
35
35
  }
package/src/ethers-v6.cjs CHANGED
@@ -44,7 +44,10 @@ const EthersExtension = {
44
44
  return _tslib.__awaiter(this, void 0, void 0, function* () {
45
45
  const { chain } = yield connector.getPublicClient();
46
46
  const walletClient = connector.getWalletClient();
47
- const { transport } = walletClient;
47
+ const { transport } = walletClient !== null && walletClient !== void 0 ? walletClient : {};
48
+ if (!transport) {
49
+ throw new Error('Wallet is not connected, cannot create ethers client');
50
+ }
48
51
  const network = {
49
52
  chainId: chain === null || chain === void 0 ? void 0 : chain.id,
50
53
  ensAddress: (_b = (_a = chain === null || chain === void 0 ? void 0 : chain.contracts) === null || _a === void 0 ? void 0 : _a.ensRegistry) === null || _b === void 0 ? void 0 : _b.address,
package/src/ethers-v6.js CHANGED
@@ -40,7 +40,10 @@ const EthersExtension = {
40
40
  return __awaiter(this, void 0, void 0, function* () {
41
41
  const { chain } = yield connector.getPublicClient();
42
42
  const walletClient = connector.getWalletClient();
43
- const { transport } = walletClient;
43
+ const { transport } = walletClient !== null && walletClient !== void 0 ? walletClient : {};
44
+ if (!transport) {
45
+ throw new Error('Wallet is not connected, cannot create ethers client');
46
+ }
44
47
  const network = {
45
48
  chainId: chain === null || chain === void 0 ? void 0 : chain.id,
46
49
  ensAddress: (_b = (_a = chain === null || chain === void 0 ? void 0 : chain.contracts) === null || _a === void 0 ? void 0 : _a.ensRegistry) === null || _b === void 0 ? void 0 : _b.address,