@exodus/ethereum-api 8.47.0 → 8.48.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,26 @@
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.48.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.47.1...@exodus/ethereum-api@8.48.0) (2025-09-10)
7
+
8
+
9
+ ### Features
10
+
11
+
12
+ * feat(ethereum): add displayAddess to asset.address (#6363)
13
+
14
+
15
+
16
+ ## [8.47.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.47.0...@exodus/ethereum-api@8.47.1) (2025-09-08)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+
22
+ * fix: enable proper handling of null responses for batch requests (#6414)
23
+
24
+
25
+
6
26
  ## [8.47.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.46.1...@exodus/ethereum-api@8.47.0) (2025-09-08)
7
27
 
8
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "8.47.0",
3
+ "version": "8.48.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",
@@ -64,5 +64,5 @@
64
64
  "type": "git",
65
65
  "url": "git+https://github.com/ExodusMovement/assets.git"
66
66
  },
67
- "gitHead": "e0dac028c1eb8ad919ce437b88f7f8549eea6f88"
67
+ "gitHead": "d74bdea9fd95bb9d054df35abb904bfa5902776c"
68
68
  }
@@ -16,6 +16,7 @@ import {
16
16
  signUnsignedTxWithSigner,
17
17
  validateFactory,
18
18
  } from '@exodus/ethereum-lib'
19
+ import { toChecksumAddress } from '@exodus/ethereumjs/util'
19
20
  import lodash from 'lodash'
20
21
  import assert from 'minimalistic-assert'
21
22
 
@@ -131,6 +132,7 @@ export const createAssetFactory = ({
131
132
  validate: validateFactory({ chainId, useEip1191ChainIdChecksum }),
132
133
  hasChecksum,
133
134
  isContract: server.isContract,
135
+ displayAddress: (addr) => toChecksumAddress(addr),
134
136
  }
135
137
 
136
138
  const bip44 = customBip44 || bip44Constants['ETH']
@@ -34,7 +34,7 @@ export default class ApiCoinNodesServer extends EventEmitter {
34
34
  if (isEmpty(batch)) return batch
35
35
  const responses = await this.request(batch)
36
36
  const isValid = responses.every((response) => {
37
- return !isNaN(response?.id) && response?.result
37
+ return !isNaN(response?.id) && response?.result !== undefined
38
38
  })
39
39
  if (responses.length !== batch.length || !isValid) {
40
40
  throw new Error('Bad rpc batch response')
@@ -181,7 +181,7 @@ export default class ClarityServer extends EventEmitter {
181
181
  const responses = await this.sendRpcRequest(batch)
182
182
  // FIXME: this falls apart if responses is not an array
183
183
  const isValid = responses.every((response) => {
184
- return !isNaN(response?.id) && response?.result
184
+ return !isNaN(response?.id) && response?.result !== undefined
185
185
  })
186
186
  if (responses.length !== batch.length || !isValid) {
187
187
  throw new Error('Bad Response')