@exodus/ethereum-api 8.73.3 → 8.73.5
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 +18 -0
- package/package.json +2 -2
- package/src/tx-create.js +10 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
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.73.5](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.73.4...@exodus/ethereum-api@8.73.5) (2026-05-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix: broken erc20 tx acceleration logic on evm (#8038)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [8.73.4](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.73.3...@exodus/ethereum-api@8.73.4) (2026-05-08)
|
|
17
|
+
|
|
18
|
+
**Note:** Version bump only for package @exodus/ethereum-api
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [8.73.3](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.73.2...@exodus/ethereum-api@8.73.3) (2026-05-06)
|
|
7
25
|
|
|
8
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "8.73.
|
|
3
|
+
"version": "8.73.5",
|
|
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",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"type": "git",
|
|
68
68
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "7238e1dc3c4d73cabd4b4a19509de6ee0aa87068"
|
|
71
71
|
}
|
package/src/tx-create.js
CHANGED
|
@@ -119,13 +119,11 @@ const resolveTxFactoryGasPrices = async ({
|
|
|
119
119
|
tipGasPrice: providedTipGasPrice,
|
|
120
120
|
txToReplace,
|
|
121
121
|
nonce,
|
|
122
|
-
walletAccount,
|
|
123
122
|
}) => {
|
|
124
123
|
assert(assetClientInterface, 'expected assetClientInterface')
|
|
125
124
|
assert(baseAsset, 'expected baseAsset')
|
|
126
125
|
assert(feeData, 'expected feeData')
|
|
127
126
|
assert(Number.isInteger(nonce), 'expected integer nonce')
|
|
128
|
-
assert(walletAccount, 'expected walletAccount')
|
|
129
127
|
|
|
130
128
|
const {
|
|
131
129
|
gasPrice: maybeGasPrice,
|
|
@@ -271,7 +269,15 @@ const createBumpUnsignedTx = async ({
|
|
|
271
269
|
|
|
272
270
|
const isDuplex = Boolean(replacedTokenTx && txValue.gt(baseAsset.currency.ZERO))
|
|
273
271
|
|
|
274
|
-
const txInput =
|
|
272
|
+
const txInput = replacedTx.data.data || '0x'
|
|
273
|
+
|
|
274
|
+
const isTokenTx =
|
|
275
|
+
!isDuplex /* nonpayable */ &&
|
|
276
|
+
replacedTokenTx &&
|
|
277
|
+
Object.keys(asset.contract.methodIds).includes(txInput.slice(0, 10))
|
|
278
|
+
|
|
279
|
+
const txToAddress = isTokenTx ? asset.contract.address : undefined
|
|
280
|
+
|
|
275
281
|
const replacedTxNonce = replacedTx.data.nonce
|
|
276
282
|
|
|
277
283
|
assert(
|
|
@@ -298,6 +304,7 @@ const createBumpUnsignedTx = async ({
|
|
|
298
304
|
nonce,
|
|
299
305
|
txInput,
|
|
300
306
|
toAddress,
|
|
307
|
+
txToAddress,
|
|
301
308
|
txType,
|
|
302
309
|
txValue,
|
|
303
310
|
walletAccount,
|
|
@@ -327,7 +334,6 @@ const createBumpUnsignedTx = async ({
|
|
|
327
334
|
feeData,
|
|
328
335
|
nonce,
|
|
329
336
|
txToReplace: maybeTxToReplace,
|
|
330
|
-
walletAccount,
|
|
331
337
|
})
|
|
332
338
|
|
|
333
339
|
return createUnsignedTxWithFees({
|
|
@@ -431,7 +437,6 @@ export const createTxFactory = ({ chainId, assetClientInterface, useAbsoluteNonc
|
|
|
431
437
|
nonce,
|
|
432
438
|
tipGasPrice: providedTipGasPrice,
|
|
433
439
|
txToReplace: maybeTxToReplace,
|
|
434
|
-
walletAccount,
|
|
435
440
|
})
|
|
436
441
|
|
|
437
442
|
if (nft) {
|