@exodus/ethereum-api 8.50.1 → 8.51.0

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,22 @@
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.51.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.50.1...@exodus/ethereum-api@8.51.0) (2025-09-25)
7
+
8
+
9
+ ### Features
10
+
11
+
12
+ * feat(ethereum): check Eip1191ChainId in displayAddress function (#6504)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+
18
+ * fix: removed contractAddress, keepTxInput and and resolve token amount when sending to a different contract (#6508)
19
+
20
+
21
+
6
22
  ## [8.50.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.50.0...@exodus/ethereum-api@8.50.1) (2025-09-22)
7
23
 
8
24
  **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.50.1",
3
+ "version": "8.51.0",
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",
@@ -66,5 +66,5 @@
66
66
  "type": "git",
67
67
  "url": "git+https://github.com/ExodusMovement/assets.git"
68
68
  },
69
- "gitHead": "e54f136a2e7ff694cd12dc1a7b0ef34eb707ef0e"
69
+ "gitHead": "a5a5ca09ab04597193c9243306a884df16bdab8b"
70
70
  }
@@ -132,7 +132,8 @@ export const createAssetFactory = ({
132
132
  validate: validateFactory({ chainId, useEip1191ChainIdChecksum }),
133
133
  hasChecksum,
134
134
  isContract: server.isContract,
135
- displayAddress: (addr) => toChecksumAddress(addr),
135
+ displayAddress: (addr) =>
136
+ useEip1191ChainIdChecksum ? toChecksumAddress(addr, chainId) : toChecksumAddress(addr),
136
137
  }
137
138
 
138
139
  const bip44 = customBip44 || bip44Constants['ETH']
package/src/tx-create.js CHANGED
@@ -219,7 +219,6 @@ export const createTxFactory = ({ chainId, assetClientInterface, useAbsoluteNonc
219
219
  nft, // when sending nfts
220
220
  fromAddress: providedFromAddress, // wallet from address
221
221
  toAddress: providedToAddress, // user's to address, not the token or the dex contract
222
- contractAddress: providedContractAddress, // Provided when swapping a token via the DEX contract, not via the token's contract
223
222
  txInput: providedTxInput, // Provided when swapping via a DEX contract
224
223
  gasLimit: providedGasLimit, // Provided by exchange when known
225
224
  amount: providedAmount, // The NU amount to be sent, to be included in the tx value or tx input
@@ -230,7 +229,6 @@ export const createTxFactory = ({ chainId, assetClientInterface, useAbsoluteNonc
230
229
  customFee,
231
230
  isSendAll,
232
231
  bumpTxId,
233
- keepTxInput, // @deprecated this flag is used by swaps when swapping a token via DEX. The asset is token but the tx TO address is not the token address. Update swap to use `contractAddress`
234
232
  }) => {
235
233
  assert(asset, 'asset is required')
236
234
  assert(walletAccount, 'walletAccount is required')
@@ -273,8 +271,7 @@ export const createTxFactory = ({ chainId, assetClientInterface, useAbsoluteNonc
273
271
 
274
272
  const resolvedGasPrice = providedGasPrice ?? maybeGasPrice
275
273
 
276
- const txToAddress =
277
- providedContractAddress ?? (isToken && !keepTxInput ? asset.contract.address : toAddress)
274
+ const txToAddress = isToken && !providedTxInput ? asset.contract.address : toAddress
278
275
 
279
276
  const isContractToAddress = await isContractAddressCached({ asset, address: txToAddress })
280
277
 
@@ -42,14 +42,10 @@ const txSendFactory = ({ assetClientInterface, createTx }) => {
42
42
  // this converts an transactionBuffer to values we can use when creating the tx logs
43
43
  const parsedTx = parseUnsignedTx({ asset, unsignedTx })
44
44
 
45
- // the txMeta.fee may include implicit l1 fees
46
- const feeAmount = unsignedTx.txMeta.fee
47
- ? asset.feeAsset.currency.parse(unsignedTx.txMeta.fee)
48
- : parsedTx.fee
49
-
50
45
  let nonce = parsedTx.nonce
51
46
 
52
47
  const tipGasPrice = parsedTx.tipGasPrice
48
+ const feeAmount = parsedTx.fee
53
49
  const gasLimit = parsedTx.gasLimit
54
50
  const amount = parsedTx.amount
55
51
  const toAddress = parsedTx.to