-
-
Notifications
You must be signed in to change notification settings - Fork 261
Implement resetConnection method in network controller #1131
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
Conversation
5b8b7bc to
00ed357
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.
We should add tests for resetConnection. We have existing tests for this on the extension side here: https://github.com/MetaMask/metamask-extension/blob/b9f00ba5365cf92429c45f4ad05ced7373f726f5/app/scripts/controllers/network/network-controller.test.js#L3535. Note, however, that due to the differences in implementation between the extension and core versions of the network controller as well as the network controller tests, you will probably have to make some modifications to these tests when bringing them over.
|
By the way, @cryptodev-2s, if you use "Fixes" instead of "Related issue" in your PR description, it will associate this PR with the original issue and when you merge this PR it will close the associated issue automatically. Otherwise we have to go back later and manually close issues. |
Gudahtt
left a comment
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!
|
We still ought to have tests for the |
c35f242 to
5edb863
Compare
mcmire
left a comment
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.
This is getting there! Just a few more changes needed.
95d242e to
53fab33
Compare
078de49 to
4104f40
Compare
mcmire
left a comment
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.
Two nits, but I'm happy with this!
mcmire
left a comment
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.
Looks great!
* implement reset connection in network controller
* implement reset connection in network controller
This PR adds a resetConnection method.
Related issue #1023