-
-
Notifications
You must be signed in to change notification settings - Fork 8
Delay EthQuery instantiation until network provider is available
#274
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
3cbf637 to
a37a8fd
Compare
ca47f45 to
f503253
Compare
legobeat
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.
Changes here LGTM but I guess we should consider this blocked by #276 , which is already quite sizable?
|
@pedronfigueiredo What is the added method mentioned in the description? It seems like |
|
Thanks for the heads up @legobeat, I had forgotten to update the PR description. Should be fixed now. |
…lable (MetaMask#274)" This reverts commit 55b22e8.
In the future, the network provider may no longer be defined when the Smart Transactions Controller is instantiated. As such, this PR initializes EthQuery to undefined, and
onNetworkStateChangedcan set it as soon as a provider is available.For more details on the reasoning behind this change, please see the linked PRs and issues.