@dynamic-labs/global-wallet 4.6.2 → 4.7.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/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.6.2";
6
+ var version = "4.7.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.6.2";
2
+ var version = "4.7.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/global-wallet",
3
- "version": "4.6.2",
3
+ "version": "4.7.0",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -18,13 +18,13 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@walletconnect/core": "2.17.3",
22
- "@walletconnect/utils": "2.17.3",
21
+ "@walletconnect/core": "2.18.0",
22
+ "@walletconnect/utils": "2.18.0",
23
23
  "@reown/walletkit": "1.1.2",
24
24
  "jsqr": "1.4.0",
25
- "@dynamic-labs/assert-package-version": "4.6.2",
26
- "@dynamic-labs/ethereum-core": "4.6.2",
27
- "@dynamic-labs/wallet-connector-core": "4.6.2"
25
+ "@dynamic-labs/assert-package-version": "4.7.0",
26
+ "@dynamic-labs/ethereum-core": "4.7.0",
27
+ "@dynamic-labs/wallet-connector-core": "4.7.0"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "viem": "^2.21.55",
@@ -151,10 +151,6 @@ const GlobalWalletExtension = {
151
151
  networkChainId: chainId.split(':')[1],
152
152
  });
153
153
  }
154
- // sometimes the signer is undefined at initialization
155
- if (!signer) {
156
- signer = (yield connector.getSigner());
157
- }
158
154
  return handleRequest(() => _tslib.__awaiter(void 0, void 0, void 0, function* () {
159
155
  const estimatedFeesPerGas = yield (yield connector.getPublicClient()).estimateFeesPerGas();
160
156
  const type = (estimatedFeesPerGas === null || estimatedFeesPerGas === void 0 ? void 0 : estimatedFeesPerGas.maxFeePerGas)
@@ -167,6 +163,10 @@ const GlobalWalletExtension = {
167
163
  : requestParamsMessage.gasPrice, type, value: requestParamsMessage.value })));
168
164
  }));
169
165
  });
166
+ // sometimes the signer is undefined at initialization
167
+ if (!signer) {
168
+ signer = (yield connector.getSigner());
169
+ }
170
170
  if (request.method === 'eth_signTypedData_v4') {
171
171
  response = yield handleEthSignTypedDataV4();
172
172
  }
@@ -143,10 +143,6 @@ const GlobalWalletExtension = {
143
143
  networkChainId: chainId.split(':')[1],
144
144
  });
145
145
  }
146
- // sometimes the signer is undefined at initialization
147
- if (!signer) {
148
- signer = (yield connector.getSigner());
149
- }
150
146
  return handleRequest(() => __awaiter(void 0, void 0, void 0, function* () {
151
147
  const estimatedFeesPerGas = yield (yield connector.getPublicClient()).estimateFeesPerGas();
152
148
  const type = (estimatedFeesPerGas === null || estimatedFeesPerGas === void 0 ? void 0 : estimatedFeesPerGas.maxFeePerGas)
@@ -159,6 +155,10 @@ const GlobalWalletExtension = {
159
155
  : requestParamsMessage.gasPrice, type, value: requestParamsMessage.value })));
160
156
  }));
161
157
  });
158
+ // sometimes the signer is undefined at initialization
159
+ if (!signer) {
160
+ signer = (yield connector.getSigner());
161
+ }
162
162
  if (request.method === 'eth_signTypedData_v4') {
163
163
  response = yield handleEthSignTypedDataV4();
164
164
  }