fix: migration 196 remove exception missing nativeAssetIdentifiers#40764
Merged
davidmurdoch merged 1 commit intomainfrom Mar 11, 2026
Merged
Conversation
Contributor
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Contributor
Builds ready [42d1696]
⚡ Performance Benchmarks
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs
|
42d1696 to
f81faf5
Compare
f81faf5 to
4edc86c
Compare
Prithpal-Sooriya
approved these changes
Mar 11, 2026
|
wantedsystem
approved these changes
Mar 11, 2026
Contributor
Builds ready [4edc86c]
⚡ Performance Benchmarks
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs
|
Contributor
Builds ready [4edc86c]
⚡ Performance Benchmarks
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
The PR fixes two cases that we treated as exception (expected to never happen) but are not:
nativeAssetIdentifiers: This field was created recently (1-2 months ago) but I thought it would be initialized to an empty object for new users, but I didn't realize migrations actually run before controller init.NetworkEnablementController: That one confused me even more because I thought that a controller should always be assumed to be present. The NetworkEnablementController (as opposed to NetworkController) is fairly recent (7 months) and my understanding is that the message is triggered by old users.Changelog
CHANGELOG entry: remove thrown exceptions in migration 196 when
NetworkEnablementControlleris absent orNetworkEnablementController.nativeAssetIdentifiersis missing.Related issues
Fixes: #40788
Manual testing steps
(if we want to test it since it is a log message thing)
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk: changes only reduce Sentry noise by no longer capturing exceptions for optional/missing migration state, without altering the actual migration transformation logic.
Overview
Migration
196no longer callscaptureExceptionwhenNetworkEnablementControlleris absent or whenNetworkEnablementController.nativeAssetIdentifiersis missing; it now silently no-ops in these cases while still reporting type mismatches.Tests for migration
196are updated to assert that no exception is captured for these missing-state scenarios.Written by Cursor Bugbot for commit 4edc86c. This will update automatically on new commits. Configure here.