@dynamic-labs/multi-wallet 0.18.0-RC.23 → 0.18.0-RC.25

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,29 @@
1
1
 
2
+ ## [0.18.0-RC.25](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.24...v0.18.0-RC.25) (2023-08-01)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * displayTermsOfService prop set to false breaks message verfication (#2790)
8
+
9
+ ### Bug Fixes
10
+
11
+ * always call onBeforeConnectSuccess callback when wallet state ch… ([#2792](https://github.com/dynamic-labs/DynamicAuth/issues/2792)) ([ecc6a7b](https://github.com/dynamic-labs/DynamicAuth/commit/ecc6a7bf3cbee2720860294561ff8dea03d1936e)), closes [#2786](https://github.com/dynamic-labs/DynamicAuth/issues/2786)
12
+ * displayTermsOfService prop set to false breaks message verfication ([#2790](https://github.com/dynamic-labs/DynamicAuth/issues/2790)) ([816e276](https://github.com/dynamic-labs/DynamicAuth/commit/816e276827ac6a89e6ab49afcca00705a07b2ad2)), closes [#2751](https://github.com/dynamic-labs/DynamicAuth/issues/2751)
13
+ * ensure auto-redirect back to dapp after message signing ([#2783](https://github.com/dynamic-labs/DynamicAuth/issues/2783)) ([dba4664](https://github.com/dynamic-labs/DynamicAuth/commit/dba466473ecc2afd808cdae0fd9023d38676b01f))
14
+
15
+ ## [0.18.0-RC.24](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.23...v0.18.0-RC.24) (2023-08-01)
16
+
17
+
18
+ ### Features
19
+
20
+ * **QNTM-156:** onBeforeConnectSuccessConfirmation on account change ([#2782](https://github.com/dynamic-labs/DynamicAuth/issues/2782)) ([eeabcd0](https://github.com/dynamic-labs/DynamicAuth/commit/eeabcd07889b7284680dc92a83bfa1b8321fa0f5))
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * **bridge:** reordering not mess connected wallets ([#2758](https://github.com/dynamic-labs/DynamicAuth/issues/2758)) ([2cdc240](https://github.com/dynamic-labs/DynamicAuth/commit/2cdc240b1f5b401880d776174646ebc9383506d2))
26
+
2
27
  ## [0.18.0-RC.23](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.22...v0.18.0-RC.23) (2023-07-31)
3
28
 
4
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/multi-wallet",
3
- "version": "0.18.0-RC.23",
3
+ "version": "0.18.0-RC.25",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -10,11 +10,11 @@
10
10
  "@dynamic-labs/sdk-api": "0.0.248",
11
11
  "ethers": "5.7.2",
12
12
  "tslib": "2.4.1",
13
- "@dynamic-labs/rpc-providers": "0.18.0-RC.23",
14
- "@dynamic-labs/types": "0.18.0-RC.23",
15
- "@dynamic-labs/utils": "0.18.0-RC.23",
16
- "@dynamic-labs/wallet-book": "0.18.0-RC.23",
17
- "@dynamic-labs/wallet-connector-core": "0.18.0-RC.23"
13
+ "@dynamic-labs/rpc-providers": "0.18.0-RC.25",
14
+ "@dynamic-labs/types": "0.18.0-RC.25",
15
+ "@dynamic-labs/utils": "0.18.0-RC.25",
16
+ "@dynamic-labs/wallet-book": "0.18.0-RC.25",
17
+ "@dynamic-labs/wallet-connector-core": "0.18.0-RC.25"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@walletconnect/types": "2.4.2"
@@ -19,7 +19,10 @@ const generateMessageToSign = ({ blockchain, domain, chainId, nonce, uri, public
19
19
  // This is only required for Ethereum-based wallets
20
20
  const messageAddress = getEip55Address(publicKey, chainId);
21
21
  const prefix = [header, messageAddress].join('\n');
22
- const prefixWithStatement = `${[prefix, statement].join('\n\n')}\n`;
22
+ // If there is a statement, we want to add a gap between the prefix and the statement
23
+ // two times '\n', first to move statement to next line and second to add a gap between prefix and statement
24
+ const prefixWithStatementGap = statement ? '\n\n' : '\n';
25
+ const prefixWithStatement = `${[prefix, statement].join(prefixWithStatementGap)}\n`;
23
26
  const suffixFields = [];
24
27
  suffixFields.push(`URI: ${uri}`);
25
28
  suffixFields.push('Version: 1');
@@ -15,7 +15,10 @@ const generateMessageToSign = ({ blockchain, domain, chainId, nonce, uri, public
15
15
  // This is only required for Ethereum-based wallets
16
16
  const messageAddress = getEip55Address(publicKey, chainId);
17
17
  const prefix = [header, messageAddress].join('\n');
18
- const prefixWithStatement = `${[prefix, statement].join('\n\n')}\n`;
18
+ // If there is a statement, we want to add a gap between the prefix and the statement
19
+ // two times '\n', first to move statement to next line and second to add a gap between prefix and statement
20
+ const prefixWithStatementGap = statement ? '\n\n' : '\n';
21
+ const prefixWithStatement = `${[prefix, statement].join(prefixWithStatementGap)}\n`;
19
22
  const suffixFields = [];
20
23
  suffixFields.push(`URI: ${uri}`);
21
24
  suffixFields.push('Version: 1');