@metamask-previews/assets-controller 7.1.2-preview-6d2aeda → 7.1.2-preview-fe92f4bb3

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
@@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
 
12
12
  - Bump `@metamask/transaction-controller` from `^65.3.0` to `^65.4.0` ([#8796](https://github.com/MetaMask/core/pull/8796))
13
13
 
14
+ ### Fixed
15
+
16
+ - Non-EVM assets with a `slip44` asset namespace (e.g. Bitcoin, Solana native, TRON) are now correctly typed as `native` instead of `erc20` in `assetsInfo` ([#8811](https://github.com/MetaMask/core/pull/8811))
17
+ - Solana SPL tokens (CAIP-19 `solana:.../token:<address>`) are now correctly typed as `spl` instead of `erc20` in `assetsInfo` ([#8811](https://github.com/MetaMask/core/pull/8811))
18
+
14
19
  ## [7.1.2]
15
20
 
16
21
  ### Changed
@@ -619,7 +619,8 @@ class AssetsController extends base_controller_1.BaseController {
619
619
  if (__classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_isNativeAsset).call(this, normalizedAssetId)) {
620
620
  tokenType = 'native';
621
621
  }
622
- else if (parsed.assetNamespace === 'spl') {
622
+ else if (parsed.chain.namespace === utils_1.KnownCaipNamespace.Solana &&
623
+ parsed.assetNamespace === TokenDataSource_1.CaipAssetNamespace.Token) {
623
624
  tokenType = 'spl';
624
625
  }
625
626
  const assetMetadata = {