-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Web3Provider.provider is unavailable #641
Comments
There is definitely no You are right though, the docs do not match the implementation. I should expose the provider on a Web3Provider. I'll make that change and it will get deployed on the next push, unless you need it sooner. Also, it's easier to browse the TypeScript source, than it is the generated JavaScript. :) |
I've made these changes in both v4 and v5 locally. |
I don't know why I went for JS code first :) No hurry, |
This has been published to Thanks! :) |
There's no
provider
property onWeb3Provider
instance unlike what the documentation says here and types lead me to believe.Only
_web3Provider
which gets assigned hereFor that matter just browsing the code I don't think
provider
is available on JsonRpcProvider, which Web3Provider extends, as it's never passed to its constructorThe text was updated successfully, but these errors were encountered: