feat: Update network controller to version 13.0.1#9065
Conversation
…o delete networkId property from the network controller state and added a network id property to our own internal property, created the reducer and the action for that property and added the dispatch to the engine event subscriber, update the patch of network controller, updated test cases and initial states with new data structure with the networkId property
|
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. |
|
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9065 +/- ##
==========================================
+ Coverage 45.35% 45.42% +0.07%
==========================================
Files 1272 1274 +2
Lines 31247 31300 +53
Branches 3189 3192 +3
==========================================
+ Hits 14171 14218 +47
- Misses 16234 16241 +7
+ Partials 842 841 -1 ☔ View full report in Codecov by Sentry. |
|
|
Great work! Mostly looks good, I left some comments/suggestions but the only real concern is what I asked about in this comment, as it may introduce a race condition where the |
|
All good for SDK |
…only look for network id when the network did change
|
…ion we do not need to ensure was being called with the right argument, we have separate unit tests for that function
|
|
NicolasMassart
left a comment
There was a problem hiding this comment.
Looks good to me.
|
Uprade path from version 7.19.0 with networks imported Screen.Recording.2024-04-09.at.19.32.43.mov |
… fresh install the networkId would not be updated because the event network did change did not trigger
|
This reverts commit 4c26c1e.
|
|
|
all good with the sdk now 💪 |
NicolasMassart
left a comment
There was a problem hiding this comment.
Looks good to me.



Description
Updated network controller to version 13.0.1. Also created migration to delete networkId property from the network controller state
Added an inpageProvider property with a network id property to our internal property,
Created the reducer and the action for that property with createSlice of redux toolkit
Added dispatch to the engine event subscriber
networkdStateChangeto update networkIdAdded dispatch to the Engine file with subscribing an event
networkWillChangeto update networkId to "loading"Updated the patch of network controller
Updated test cases and initial states with new data structure with the networkId property
Related issues
Fixes https://github.com/MetaMask/mobile-planning/issues/1624
Manual testing steps
QA Build: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/4b1752b4-2490-4eee-b0f9-68a347562ccd
Screenshots/Recordings
Screen.Recording.2024-03-27.at.11.26.55.mov
Latest recording with new actions (while updating migration from main with account imported on optimism)
Screen.Recording.2024-03-28.at.13.09.59.mov
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist