-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
fix: _handleChainChanged in MetaMaskInpageProvider to handle networkVersion #171
Conversation
8460206
to
71d7318
Compare
71d7318
to
5f0f0fc
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.
This looks like what we need. Great addition with the tests, as always!
p.on('chainChanged', (changed) => { | ||
expect(changed).toBe('0x1'); | ||
done(); | ||
}); |
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 avoid disabling jest/no-test-callback
by removing the callback and wrapping these lines in a Promise and awaiting it at the end of the test. Similarly below.
Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
71f708b
to
cdab561
Compare
cdab561
to
7a7dafd
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.
LGTM!
chainChanged
andnetworkChanged