@exodus/ethereum-api 8.61.1 → 8.61.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
@@ -3,6 +3,14 @@
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.61.2](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.61.1...@exodus/ethereum-api@8.61.2) (2025-12-15)
7
+
8
+ **Note:** Version bump only for package @exodus/ethereum-api
9
+
10
+
11
+
12
+
13
+
6
14
  ## [8.61.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.61.0...@exodus/ethereum-api@8.61.1) (2025-12-08)
7
15
 
8
16
  **Note:** Version bump only for package @exodus/ethereum-api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "8.61.1",
3
+ "version": "8.61.2",
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": "600b3f3f510e30333080011e85958f71835e020c"
70
+ "gitHead": "0205169eadf194fa5a97cbac124f0fcb0a701206"
71
71
  }
@@ -511,14 +511,11 @@ export function createEthereumStakingService({
511
511
  address: to,
512
512
  amount: amount || asset.currency.ZERO,
513
513
  shouldLog: true,
514
- options: {
515
- shouldLog: true,
516
- txInput,
517
- gasPrice,
518
- gasLimit,
519
- // HACK: Override the `tipGasPrice` to use a custom `maxPriorityFeePerGas`.
520
- tipGasPrice,
521
- },
514
+ txInput,
515
+ gasPrice,
516
+ gasLimit,
517
+ // HACK: Override the `tipGasPrice` to use a custom `maxPriorityFeePerGas`.
518
+ tipGasPrice,
522
519
  feeData,
523
520
  }
524
521
 
@@ -430,13 +430,11 @@ export function createPolygonStakingService({
430
430
  walletAccount,
431
431
  address: to,
432
432
  amount: asset.currency.ZERO,
433
- options: {
434
- shouldLog: true,
435
- txInput,
436
- gasPrice,
437
- gasLimit,
438
- tipGasPrice,
439
- },
433
+ shouldLog: true,
434
+ txInput,
435
+ gasPrice,
436
+ gasLimit,
437
+ tipGasPrice,
440
438
  waitForConfirmation,
441
439
  feeData,
442
440
  }
package/src/tx-create.js CHANGED
@@ -279,7 +279,8 @@ export const createTxFactory = ({ chainId, assetClientInterface, useAbsoluteNonc
279
279
  walletAccount,
280
280
  nft, // when sending nfts
281
281
  fromAddress: providedFromAddress, // wallet from address
282
- toAddress: providedToAddress, // user's to address, not the token or the dex contract
282
+ toAddress, // user's to address, not the token or the dex contract
283
+ address, // same as toAddress
283
284
  txInput: providedTxInput, // Provided when swapping via a DEX contract
284
285
  txType = TX_TYPE_TRANSFER, // Defines what kind of transaction is being performed.
285
286
  gasLimit: providedGasLimit, // Provided by exchange when known
@@ -296,6 +297,8 @@ export const createTxFactory = ({ chainId, assetClientInterface, useAbsoluteNonc
296
297
  assert(walletAccount, 'walletAccount is required')
297
298
  assert(isValidTxType(txType), 'invalid txType')
298
299
 
300
+ const providedToAddress = toAddress ?? address
301
+
299
302
  const baseAsset = asset.baseAsset
300
303
  const feeData = await assetClientInterface.getFeeConfig({ assetName: baseAsset.name })
301
304
 
@@ -23,21 +23,9 @@ const txSendFactory = ({ assetClientInterface, createTx }) => {
23
23
  return async ({ asset, walletAccount, unsignedTx: providedUnsignedTx, ...legacyParams }) => {
24
24
  const baseAsset = asset.baseAsset
25
25
 
26
- const resolveUnsignedTx = async () => {
27
- if (providedUnsignedTx) {
28
- return { unsignedTx: providedUnsignedTx }
29
- }
30
-
31
- return createTx({
32
- asset,
33
- walletAccount,
34
- toAddress: legacyParams.address,
35
- ...legacyParams,
36
- ...legacyParams.options,
37
- })
38
- }
39
-
40
- const { unsignedTx } = await resolveUnsignedTx()
26
+ const { unsignedTx } = providedUnsignedTx
27
+ ? { unsignedTx: providedUnsignedTx }
28
+ : await createTx({ asset, walletAccount, ...legacyParams })
41
29
 
42
30
  const parsedTx = parseUnsignedTx({ asset, unsignedTx })
43
31