MetaMask / MetaMask/metamask-extension
[Sentry] Error: Migration #149: state.NetworkController.networkConfigurationsByChainId must be present
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
Sentry Issue: [METAMASK-XHHY](https://metamask.sentry.io/issues/6545028730/?referrer=github_integration)
```
Error: Migration #149: state.NetworkController.networkConfigurationsByChainId must be present
at r.migrate (app/scripts/migrations/149.ts:27:7)
at Migrator.migrateData (app/scripts/lib/migrator/index.js:43:46)
at loadStateFromPersistence (app/scripts/background.js:627:9)
at initialize (app/scripts/background.js:460:11)
at (app/scripts/background.js:1336:3)
```
Contributor guide
Research direction
Start with app/scripts/migrations/149.ts at line 27, then trace how it is invoked through app/scripts/lib/migrator/index.js and app/scripts/background.js. Investigate why persisted state lacks state.NetworkController.networkConfigurationsByChainId and determine the expected migration behavior; done means startup no longer produces this migration error and the relevant behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100