-
Notifications
You must be signed in to change notification settings - Fork 18
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
Function to obtain web3 instance injected by Mist / Metamask #7
Comments
Hi, |
Right. But if you're using advanced compilation and don't have externs via cljsjs then you cannot just use js/web3 but have to use goog.object or some other mechanism to access via string keys. |
yeah, true. I personally always use |
|
Sure, I'm bit busy with other work these days, but if you could prepare PR I'll be happy to merge ;) Thank you |
Sure, I'd be happy to. |
Hey again :) I was looking through the core namespace and documentation and was just wondering if there's a built in way to obtain the web3 object injected by Metamask et al?
If there's not then maybe it's worth to add this? Not sure how easy this is to uniformly implement across Mist / Metamask /... but currently users need to extern
js/window.web3
themselves which introduces some avoidable friction in using this library.The text was updated successfully, but these errors were encountered: