-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lastFetched PhishingController state (#986)
**Pass in initial state to PhishingController and load the initialState from persisted state** In Manifest V3, there's need to 1. Persist phishingcontroller state 2. Load phishingcontroller from persistent state Thos PR makes sure state is loaded from persistent state and also abstracts out the checks required before updating the lists - BREAKING: - All the code bases using PhishingController should continue to work as expected - CHANGED: - We should call initialise before calling PhishingDetector controller. - ADDED: - Added `maybeUpdatePhishingLists` method so that controllers don't have to do the check logic anymore **Checklist** - [ ] Tests are included if applicable - [ ] Any added code is fully documented **Issue** Resolves MetaMask/metamask-extension#16551 Signed-off-by: Akintayo A. Olusegun <[email protected]>
- Loading branch information
Showing
2 changed files
with
115 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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