@metamask-previews/assets-controller 3.3.0-preview-3d4e0a05f → 3.3.0-preview-ce9be8b82

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
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Changed
11
+
12
+ - `TokenDataSource` constructor now takes `(messenger, options)` instead of `(options)`; `messenger` must be the same `AssetsControllerMessenger` used by `AssetsController` so token metadata enrichment can call `PhishingController:bulkScanTokens` ([#8329](https://github.com/MetaMask/core/pull/8329))
13
+
14
+ - `TokenDataSource` removes tokens flagged malicious by Blockaid (via `PhishingController:bulkScanTokens`) before merging metadata, instead of filtering non-native tokens by a minimum occurrence count ([#8329](https://github.com/MetaMask/core/pull/8329))
15
+
10
16
  ## [3.3.0]
11
17
 
12
18
  ### Changed
@@ -289,7 +289,7 @@ class AssetsController extends base_controller_1.BaseController {
289
289
  onActiveChainsUpdated: __classPrivateFieldGet(this, _AssetsController_onActiveChainsUpdated, "f"),
290
290
  ...stakedBalanceDataSourceConfig,
291
291
  }), "f");
292
- __classPrivateFieldSet(this, _AssetsController_tokenDataSource, new TokenDataSource_1.TokenDataSource({
292
+ __classPrivateFieldSet(this, _AssetsController_tokenDataSource, new TokenDataSource_1.TokenDataSource(this.messenger, {
293
293
  queryApiClient,
294
294
  getNativeAssetIds: () => {
295
295
  const { nativeAssetIdentifiers } = this.messenger.call('NetworkEnablementController:getState');