-
Notifications
You must be signed in to change notification settings - Fork 5k
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
void #3247
Comments
The nature of the bug: In the metamask-controller constructor, we initialize a provider, and then use that blocktracker to initialize the filter subprovider that is provided to every page: The problem seems to be that the network controller allows this provider to be changed without notice. Sometimes it has listeners registered manually, like here: For some reason, it seems like its old Frankly, this still doesn't make any sense to me at all. Just laying out some initial observations. One post-mortem lesson I can draw is that we could isolate our network provider logic out of the metamask controller much more. This is going to become necessary soon anyway, when we allow dapps to be signed in on different blockchains, and so the sooner we isolate our instances of blockchain providers (instead of re-initializing them), the sooner we won't be prone to this kind of reference-swapping bug. |
No description provided.
The text was updated successfully, but these errors were encountered: