-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
ethereum.enable() throws error in new builds #5386
Comments
Hi @NoahHydro, thanks for your detailed bug report. After trying the steps listed, we're unable to reproduce the error you described. For reference, here's exactly what we did:
Despite not being able to reproduce the issue, the message associated with the error you described is indicative of a failed Could you please try the latest build from |
Hi @bitpshr, thanks for the super fast turnaround! I can confirm that build I'm not sure why the error is not reproducible via your script, it must be something unique to my project. One thought was that I mistakenly tried to initialize a Let me know if you'd like me to do some more digging to try to figure out what part of my local project was causing the failure. Possibly something related to me using the new UI? Regardless, thanks for pushing this fix! |
Glad to hear things are resolved @NoahZinsmeister. Please let us know if you encounter any other issues while testing against the 1102 PR. |
Will do, thanks! |
Describe the bug
After downloading builds
5b5d390
andd496e2d
from PR #4703 and testing them against a sample dApp implementation usingwindow.ethereum.enable()
, I was unable to successfully access user accounts after approving access, due to an error in theenable
call. Denying access worked as expected.A minimal example of my code looks like:
The full stack trace of the error is attached.
To Reproduce
5b5d390
andd496e2d
Screenshots
![image](https://user-images.githubusercontent.com/37628321/46165925-e7b6d200-c25f-11e8-9b3e-33de1f138163.png)
Expected behavior
For
window.ethereum.enable()
to function correctly and grant my dApp access to user accounts.Browser details (please complete the following information):
Chrome: Version 69.0.3497.100 (Official Build) (64-bit)
OS: macOS High Sierra 10.13.6 (17G65)
MetaMask: 4.9.3 (
5b5d390
andd496e2d
)UI: New/Beta
Additional context
I also tested out the Firefox builds, with the same result. I thought that the problem might stem from me using http and localhost, so I briefly spun up an https localhost, but still had the same result.
The text was updated successfully, but these errors were encountered: