@dynamic-labs/ethereum-core 4.0.0-alpha.50 → 4.0.0-alpha.52
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 +10 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/connector/EthereumWalletConnector.cjs +1 -1
- package/src/connector/EthereumWalletConnector.js +1 -1
- package/src/utils/viem/createViemUiTransaction/createViemUiTransaction.cjs +1 -0
- package/src/utils/viem/createViemUiTransaction/createViemUiTransaction.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.52](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.51...v4.0.0-alpha.52) (2025-01-02)
|
|
3
|
+
|
|
4
|
+
## [4.0.0-alpha.51](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.50...v4.0.0-alpha.51) (2024-12-30)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* changing copy of linking same wallet ([#7489](https://github.com/dynamic-labs/dynamic-auth/issues/7489)) ([e7d6b95](https://github.com/dynamic-labs/dynamic-auth/commit/e7d6b957043eaf8c06a4e8ef480ec9b027abdb5e))
|
|
10
|
+
* normalize user reject error from Rainbow and BitGet ([#7721](https://github.com/dynamic-labs/dynamic-auth/issues/7721)) ([78a2e41](https://github.com/dynamic-labs/dynamic-auth/commit/78a2e41e235743f0c652be746a8bee74d4e06629))
|
|
11
|
+
|
|
2
12
|
## [4.0.0-alpha.50](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.49...v4.0.0-alpha.50) (2024-12-28)
|
|
3
13
|
|
|
4
14
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum-core",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.52",
|
|
4
4
|
"description": "Core package for utilities and types for viem",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"viem": "^2.7.12",
|
|
25
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
26
|
-
"@dynamic-labs/logger": "4.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/rpc-providers": "4.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
30
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.52",
|
|
26
|
+
"@dynamic-labs/logger": "4.0.0-alpha.52",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "4.0.0-alpha.52",
|
|
28
|
+
"@dynamic-labs/types": "4.0.0-alpha.52",
|
|
29
|
+
"@dynamic-labs/utils": "4.0.0-alpha.52",
|
|
30
|
+
"@dynamic-labs/wallet-book": "4.0.0-alpha.52",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.52"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -197,7 +197,7 @@ class EthereumWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
197
197
|
throw new utils.DynamicError('Network switching is not supported');
|
|
198
198
|
}
|
|
199
199
|
const viemChain = getOrMapViemChain.getOrMapViemChain(network);
|
|
200
|
-
yield provider.switchChain(viemChain);
|
|
200
|
+
yield provider.switchChain({ id: viemChain.id });
|
|
201
201
|
if (this.key === 'magiceden') {
|
|
202
202
|
const newChainId = yield provider.getChainId();
|
|
203
203
|
this.emit('chainChange', { chain: newChainId.toString() });
|
|
@@ -193,7 +193,7 @@ class EthereumWalletConnector extends WalletConnectorBase {
|
|
|
193
193
|
throw new DynamicError('Network switching is not supported');
|
|
194
194
|
}
|
|
195
195
|
const viemChain = getOrMapViemChain(network);
|
|
196
|
-
yield provider.switchChain(viemChain);
|
|
196
|
+
yield provider.switchChain({ id: viemChain.id });
|
|
197
197
|
if (this.key === 'magiceden') {
|
|
198
198
|
const newChainId = yield provider.getChainId();
|
|
199
199
|
this.emit('chainChange', { chain: newChainId.toString() });
|
|
@@ -26,6 +26,7 @@ const createViemUiTransaction = (_a) => _tslib.__awaiter(void 0, [_a], void 0, f
|
|
|
26
26
|
// Native token
|
|
27
27
|
return walletClient.sendTransaction({
|
|
28
28
|
account: from,
|
|
29
|
+
data: '0x',
|
|
29
30
|
maxFeePerGas: transaction.maxFeePerGas,
|
|
30
31
|
maxPriorityFeePerGas: transaction.maxPriorityFeePerGas,
|
|
31
32
|
to: transaction.to,
|
|
@@ -22,6 +22,7 @@ const createViemUiTransaction = (_a) => __awaiter(void 0, [_a], void 0, function
|
|
|
22
22
|
// Native token
|
|
23
23
|
return walletClient.sendTransaction({
|
|
24
24
|
account: from,
|
|
25
|
+
data: '0x',
|
|
25
26
|
maxFeePerGas: transaction.maxFeePerGas,
|
|
26
27
|
maxPriorityFeePerGas: transaction.maxPriorityFeePerGas,
|
|
27
28
|
to: transaction.to,
|