@exodus/ethereum-api 8.57.0 → 8.57.1
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.json +3 -3
- package/src/tx-send/tx-send.js +17 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [8.57.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.57.0...@exodus/ethereum-api@8.57.1) (2025-11-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix: correct response to insufficient evm nonce during txSend (#6901)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## [8.57.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.55.0...@exodus/ethereum-api@8.57.0) (2025-11-05)
|
|
7
17
|
|
|
8
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "8.57.
|
|
3
|
+
"version": "8.57.1",
|
|
4
4
|
"description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Ethereum and EVM-based blockchains",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@exodus/bip44-constants": "^195.0.0",
|
|
30
30
|
"@exodus/crypto": "^1.0.0-rc.26",
|
|
31
31
|
"@exodus/currency": "^6.0.1",
|
|
32
|
-
"@exodus/ethereum-lib": "^5.18.
|
|
32
|
+
"@exodus/ethereum-lib": "^5.18.6",
|
|
33
33
|
"@exodus/ethereum-meta": "^2.9.1",
|
|
34
34
|
"@exodus/ethereumholesky-meta": "^2.0.5",
|
|
35
35
|
"@exodus/ethereumjs": "^1.8.0",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"type": "git",
|
|
68
68
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "342bc790d18d382ec34f846446d678a3b6342ab7"
|
|
71
71
|
}
|
package/src/tx-send/tx-send.js
CHANGED
|
@@ -37,10 +37,6 @@ const txSendFactory = ({ assetClientInterface, createTx }) => {
|
|
|
37
37
|
})
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
// NOTE: An `unsignedTx.txData.transactionBuffer` may be optional
|
|
41
|
-
// in `unsignedTx`, since a `providedUnsignedTx` may be
|
|
42
|
-
// truthy but composed only of `legacyParams`:
|
|
43
|
-
// https://github.com/ExodusMovement/assets/blob/4e3e873e3f5bfa8fce36f60be7d95a3dba9546e4/ethereum/ethereum-lib/src/unsigned-tx/parse-unsigned-tx.js#L104C5-L104C6
|
|
44
40
|
const { unsignedTx } = await resolveUnsignedTx()
|
|
45
41
|
|
|
46
42
|
const parsedTx = parseUnsignedTx({ asset, unsignedTx })
|
|
@@ -100,12 +96,24 @@ const txSendFactory = ({ assetClientInterface, createTx }) => {
|
|
|
100
96
|
forceFromNode: true,
|
|
101
97
|
})
|
|
102
98
|
|
|
99
|
+
// NOTE: An `unsignedTx.txData.transactionBuffer` may be optional
|
|
100
|
+
// in `unsignedTx`, since a `providedUnsignedTx` may be
|
|
101
|
+
// truthy but composed only of `legacyParams`:
|
|
102
|
+
// https://github.com/ExodusMovement/assets/blob/4e3e873e3f5bfa8fce36f60be7d95a3dba9546e4/ethereum/ethereum-lib/src/unsigned-tx/parse-unsigned-tx.js#L104C5-L104C6
|
|
103
|
+
//
|
|
103
104
|
// TODO: should return an unsignedTx -> i.e. completely replicate the transaction
|
|
104
|
-
unsignedTx.txData.transactionBuffer
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
if (unsignedTx.txData.transactionBuffer) {
|
|
106
|
+
// eslint-disable-next-line @exodus/mutable/no-param-reassign-prop-only
|
|
107
|
+
unsignedTx.txData.transactionBuffer = updateNonce({
|
|
108
|
+
chainId: baseAsset.chainId,
|
|
109
|
+
newNonce,
|
|
110
|
+
unsignedTx,
|
|
111
|
+
})
|
|
112
|
+
} else {
|
|
113
|
+
// eslint-disable-next-line @exodus/mutable/no-param-reassign-prop-only
|
|
114
|
+
unsignedTx.txData.nonce = newNonce
|
|
115
|
+
}
|
|
116
|
+
|
|
109
117
|
;({ txId, rawTx } = await signTx({ asset, unsignedTx, walletAccount }))
|
|
110
118
|
|
|
111
119
|
try {
|