@exodus/assets-feature 4.1.1 → 4.1.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,13 @@
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
+ ## [4.1.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@4.1.1...@exodus/assets-feature@4.1.2) (2024-02-20)
7
+
8
+ ### Bug Fixes
9
+
10
+ - make sure the check does not throw ([#5070](https://github.com/ExodusMovement/exodus-hydra/issues/5070)) ([b145ecc](https://github.com/ExodusMovement/exodus-hydra/commit/b145ecce8d5e2720edc9f422b913268e5f5b8364))
11
+ - native tokens auto-disabling when already in registry ([#5736](https://github.com/ExodusMovement/exodus-hydra/issues/5736)) ([feb9e8c](https://github.com/ExodusMovement/exodus-hydra/commit/feb9e8cf79f43f5be3987108bb2bc307c3648365))
12
+
6
13
  ## [4.1.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@4.1.0...@exodus/assets-feature@4.1.1) (2024-01-19)
7
14
 
8
15
  ### Bug Fixes
@@ -318,8 +318,8 @@ export class AssetsModule {
318
318
 
319
319
  if (isEmpty(tokens)) return
320
320
 
321
- const validTokens = tokensToAdd.filter(this.#validateCustomToken).map(normalizeToken)
322
- if (validTokens.length !== tokensToAdd.length) this.#logger.warn('Invalid Custom Token schema')
321
+ const validTokens = tokens.filter(this.#validateCustomToken).map(normalizeToken)
322
+ if (validTokens.length !== tokens.length) this.#logger.warn('Invalid Custom Token schema')
323
323
 
324
324
  const { fetchedAndHandledTokens, added, updated } = this.#handleFetchedTokens(validTokens)
325
325
 
@@ -481,8 +481,8 @@ export class AssetsModule {
481
481
 
482
482
  #assertSupportsCustomTokens = (baseAssetName) => {
483
483
  const baseAsset = this.getAsset(baseAssetName)
484
- if (!baseAsset.api.hasFeature('customTokens')) {
485
- const reason = `BUG: network ${baseAsset.name} does not support custom tokens.`
484
+ if (!baseAsset?.api?.hasFeature('customTokens')) {
485
+ const reason = `BUG: network ${baseAsset?.name} does not support custom tokens.`
486
486
  this.#logger.warn(reason)
487
487
  throw new Error(reason)
488
488
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/assets-feature",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Assets module, clients and apis",
6
6
  "main": "index.js",
@@ -56,7 +56,7 @@
56
56
  "@exodus/osmosis-plugin": "^1.0.0",
57
57
  "@exodus/redux-dependency-injection": "^3.0.0",
58
58
  "@exodus/storage-memory": "^2.1.1",
59
- "@exodus/wallet-accounts": "^15.1.0",
59
+ "@exodus/wallet-accounts": "^16.0.0",
60
60
  "@exodus/wild-emitter": "^1.0.0",
61
61
  "eslint": "^8.44.0",
62
62
  "events": "^3.3.0",
@@ -64,5 +64,5 @@
64
64
  "msw": "^2.0.0",
65
65
  "redux": "^4.0.0"
66
66
  },
67
- "gitHead": "021b200f9c9b2ba5c9e5fb2c7002c1f88b50d3c6"
67
+ "gitHead": "27ed0586ad800043afc77ebe8192259fcfb966cc"
68
68
  }