@dynamic-labs/ethereum-core 4.31.0 → 4.31.2
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,18 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.31.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.31.1...v4.31.2) (2025-09-11)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* issue with Safe Wallet not auto-connecting on a Safe App ([#9479](https://github.com/dynamic-labs/dynamic-auth/issues/9479)) ([fc7458d](https://github.com/dynamic-labs/dynamic-auth/commit/fc7458db2481ed1d4cba62297f768f5e409ea0b5))
|
|
8
|
+
|
|
9
|
+
### [4.31.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.31.0...v4.31.1) (2025-09-10)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* convert y parity to number instead of bigint ([#9476](https://github.com/dynamic-labs/dynamic-auth/issues/9476)) ([1e779ef](https://github.com/dynamic-labs/dynamic-auth/commit/1e779ef4217877b15857e6f8cd4e02da5d7830df))
|
|
15
|
+
|
|
2
16
|
## [4.31.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.30.4...v4.31.0) (2025-09-09)
|
|
3
17
|
|
|
4
18
|
### Features
|
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.31.
|
|
3
|
+
"version": "4.31.2",
|
|
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.31.
|
|
23
|
-
"@dynamic-labs/logger": "4.31.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.31.
|
|
25
|
-
"@dynamic-labs/types": "4.31.
|
|
26
|
-
"@dynamic-labs/utils": "4.31.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.31.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.31.
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.31.2",
|
|
23
|
+
"@dynamic-labs/logger": "4.31.2",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.31.2",
|
|
25
|
+
"@dynamic-labs/types": "4.31.2",
|
|
26
|
+
"@dynamic-labs/utils": "4.31.2",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.31.2",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.31.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"viem": "^2.28.4"
|
|
@@ -14,7 +14,7 @@ var viem = require('viem');
|
|
|
14
14
|
* https://github.com/wagmi-dev/viem/blob/0977829160effbe7dac5a69f43d263605544fa19/src/actions/wallet/sendTransaction.ts#L206
|
|
15
15
|
*/
|
|
16
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.
|
|
17
|
+
? transactionRequest.authorizationList.map((authorization) => (Object.assign(Object.assign({}, authorization), { chainId: viem.hexToBigInt(authorization.chainId), nonce: viem.hexToBigInt(authorization.nonce), yParity: viem.hexToNumber(authorization.yParity, { size: 1 }) })))
|
|
18
18
|
: undefined, gas: typeof transactionRequest.gas !== 'undefined'
|
|
19
19
|
? viem.hexToBigInt(transactionRequest.gas)
|
|
20
20
|
: undefined, gasPrice: typeof transactionRequest.gasPrice !== 'undefined'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import { hexToBigInt } from 'viem';
|
|
2
|
+
import { hexToBigInt, hexToNumber } from 'viem';
|
|
3
3
|
|
|
4
4
|
/* eslint-disable max-len */
|
|
5
5
|
/**
|
|
@@ -10,7 +10,7 @@ import { hexToBigInt } from 'viem';
|
|
|
10
10
|
* https://github.com/wagmi-dev/viem/blob/0977829160effbe7dac5a69f43d263605544fa19/src/actions/wallet/sendTransaction.ts#L206
|
|
11
11
|
*/
|
|
12
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:
|
|
13
|
+
? transactionRequest.authorizationList.map((authorization) => (Object.assign(Object.assign({}, authorization), { chainId: hexToBigInt(authorization.chainId), nonce: hexToBigInt(authorization.nonce), yParity: hexToNumber(authorization.yParity, { size: 1 }) })))
|
|
14
14
|
: undefined, gas: typeof transactionRequest.gas !== 'undefined'
|
|
15
15
|
? hexToBigInt(transactionRequest.gas)
|
|
16
16
|
: undefined, gasPrice: typeof transactionRequest.gasPrice !== 'undefined'
|