-
-
Notifications
You must be signed in to change notification settings - Fork 128
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: refactor to BaseProvider #144
Conversation
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.
Great addition with the tests!
I haven't reviewed them yet, because there's a fair amount in BaseProvider
that should be moved to MetaMaskInpageProvider
. BaseProvider
should only include the non-deprecated events, properties, and methods defined in EIP-1193.
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.
Looking good! Just a few more things to iron out.
c34952a
to
dbac811
Compare
@@ -0,0 +1,307 @@ | |||
const { BaseProvider } = require('../dist'); |
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.
For posterity, the reason these tests worked with the BaseProvider
streams set up incorrectly (see comment and changes here) is because these tests mock JsonRpcEngine.handle
, and so we're not testing the stream piping underlying that method at all.
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!
No description provided.