@dynamic-labs/ethereum-core 4.30.2 → 4.30.3

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,11 @@
1
1
 
2
+ ### [4.30.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.30.2...v4.30.3) (2025-09-05)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * serialize eip7702 auth as big int when unformatting ([#9453](https://github.com/dynamic-labs/dynamic-auth/issues/9453)) ([013de4e](https://github.com/dynamic-labs/dynamic-auth/commit/013de4e58be291f97781b05eb4138d295593afbd))
8
+
2
9
  ### [4.30.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.30.1...v4.30.2) (2025-09-05)
3
10
 
4
11
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.30.2";
6
+ var version = "4.30.3";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.30.2";
2
+ var version = "4.30.3";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum-core",
3
- "version": "4.30.2",
3
+ "version": "4.30.3",
4
4
  "description": "Core package for utilities and types for viem",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -19,13 +19,13 @@
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
21
  "@dynamic-labs/sdk-api-core": "0.0.762",
22
- "@dynamic-labs/assert-package-version": "4.30.2",
23
- "@dynamic-labs/logger": "4.30.2",
24
- "@dynamic-labs/rpc-providers": "4.30.2",
25
- "@dynamic-labs/types": "4.30.2",
26
- "@dynamic-labs/utils": "4.30.2",
27
- "@dynamic-labs/wallet-book": "4.30.2",
28
- "@dynamic-labs/wallet-connector-core": "4.30.2"
22
+ "@dynamic-labs/assert-package-version": "4.30.3",
23
+ "@dynamic-labs/logger": "4.30.3",
24
+ "@dynamic-labs/rpc-providers": "4.30.3",
25
+ "@dynamic-labs/types": "4.30.3",
26
+ "@dynamic-labs/utils": "4.30.3",
27
+ "@dynamic-labs/wallet-book": "4.30.3",
28
+ "@dynamic-labs/wallet-connector-core": "4.30.3"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "viem": "^2.28.4"
@@ -13,7 +13,9 @@ var viem = require('viem');
13
13
  * This reverts what viem is doing internally with the format function.
14
14
  * https://github.com/wagmi-dev/viem/blob/0977829160effbe7dac5a69f43d263605544fa19/src/actions/wallet/sendTransaction.ts#L206
15
15
  */
16
- const unFormatTransaction = (transactionRequest) => (Object.assign(Object.assign({}, transactionRequest), { gas: typeof transactionRequest.gas !== 'undefined'
16
+ const unFormatTransaction = (transactionRequest) => (Object.assign(Object.assign({}, transactionRequest), { authorizationList: typeof transactionRequest.authorizationList !== 'undefined'
17
+ ? transactionRequest.authorizationList.map((authorization) => (Object.assign(Object.assign({}, authorization), { chainId: viem.hexToBigInt(authorization.chainId), nonce: viem.hexToBigInt(authorization.nonce), yParity: viem.hexToBigInt(authorization.yParity) })))
18
+ : undefined, gas: typeof transactionRequest.gas !== 'undefined'
17
19
  ? viem.hexToBigInt(transactionRequest.gas)
18
20
  : undefined, gasPrice: typeof transactionRequest.gasPrice !== 'undefined'
19
21
  ? viem.hexToBigInt(transactionRequest.gasPrice)
@@ -9,7 +9,9 @@ import { hexToBigInt } from 'viem';
9
9
  * This reverts what viem is doing internally with the format function.
10
10
  * https://github.com/wagmi-dev/viem/blob/0977829160effbe7dac5a69f43d263605544fa19/src/actions/wallet/sendTransaction.ts#L206
11
11
  */
12
- const unFormatTransaction = (transactionRequest) => (Object.assign(Object.assign({}, transactionRequest), { gas: typeof transactionRequest.gas !== 'undefined'
12
+ const unFormatTransaction = (transactionRequest) => (Object.assign(Object.assign({}, transactionRequest), { authorizationList: typeof transactionRequest.authorizationList !== 'undefined'
13
+ ? transactionRequest.authorizationList.map((authorization) => (Object.assign(Object.assign({}, authorization), { chainId: hexToBigInt(authorization.chainId), nonce: hexToBigInt(authorization.nonce), yParity: hexToBigInt(authorization.yParity) })))
14
+ : undefined, gas: typeof transactionRequest.gas !== 'undefined'
13
15
  ? hexToBigInt(transactionRequest.gas)
14
16
  : undefined, gasPrice: typeof transactionRequest.gasPrice !== 'undefined'
15
17
  ? hexToBigInt(transactionRequest.gasPrice)