-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor NetworkController to BaseControllerV2 #903
Conversation
a1c0977
to
5fd5125
Compare
9dae659
to
3e332e4
Compare
815b372
to
c4144f9
Compare
c4144f9
to
3e44e92
Compare
7d7ccc8
to
4c820f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Thanks for the PR. One thing for the future is that it might be nice if the test refactors could go in a different PR as I had to sort through those changes a bit, but they all make sense. Most of my comments below are fairly minor or are questions.
e9c3f68
to
1dd3dbd
Compare
1dd3dbd
to
1e6e2a1
Compare
Fixed tests to pass Added test isolation of race condition Remove node-version file Fixed TokenListController test Fixed broken tests Fix network controller to no longer use settimeout Fixed test cleanup in a variety of cases Remove tsfmt file Update collectibles controller tests to minimize refactoring Change infura api keys to fake ones in tests where possible
f47b678
to
bdc7690
Compare
Looked through again and this looks good pending the changes mentioned above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Looking forward to more updates!
This fixes a deadlock accidentally introduced as part of #903. That PR introduced an early exit in the `net_version` callback that did not release the lock. A `try...finally` block has been introduced to ensures the lock is always released.
This fixes a deadlock accidentally introduced as part of #903. That PR introduced an early exit in the `net_version` callback that did not release the lock. A `try...finally` block has been introduced to ensures the lock is always released.
This fixes a deadlock accidentally introduced as part of #903. That PR introduced an early exit in the `net_version` callback that did not release the lock. A `try...finally` block has been introduced to ensures the lock is always released.
* Refactor NetworkController to BaseControllerV2 Change onNetworkStateChange to use messaging system & use providerChange event where possible. Co-authored-by: Shane Jonas <[email protected]>
This fixes a deadlock accidentally introduced as part of #903. That PR introduced an early exit in the `net_version` callback that did not release the lock. A `try...finally` block has been introduced to ensures the lock is always released.
* Refactor NetworkController to BaseControllerV2 Change onNetworkStateChange to use messaging system & use providerChange event where possible. Co-authored-by: Shane Jonas <[email protected]>
This fixes a deadlock accidentally introduced as part of #903. That PR introduced an early exit in the `net_version` callback that did not release the lock. A `try...finally` block has been introduced to ensures the lock is always released.
* Refactor NetworkController to BaseControllerV2 Change onNetworkStateChange to use messaging system & use providerChange event where possible. Co-authored-by: Shane Jonas <[email protected]>
This fixes a deadlock accidentally introduced as part of #903. That PR introduced an early exit in the `net_version` callback that did not release the lock. A `try...finally` block has been introduced to ensures the lock is always released.
NetworkController update to extend from BaseControllerV2
swaps out the base controller, implements messenger, fixes all the tests associated
Description
BREAKING:
ControllerMessenger
CHANGED:
Checklist
Issue
#902