-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
setProvider "does not exist on type 'typeof import(..." in typescript. #4770
Comments
Hi @rosnaib11, This functionality is not exposed for contracts package in 1.x , you should use it with main Web3 or web3.eth.setProvider(myProvider) |
Hiya @jdevcs any reason why its not exposed? Seems to be used in the documentation for
|
14 tasks
☝️ Added PR if you want to merge. Otherwise feel free to close. |
sdesalas
added a commit
to sdesalas/web3.js
that referenced
this issue
Mar 20, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Current Behavior
Can't call Web3EthContract.setProvider(ethereum)
function doesn't exist in the index.d.ts
Expected Behavior
I want to use setProvider
Steps to Reproduce
Web3.js Version
1.7.0
Environment
Anything Else?
No response
The text was updated successfully, but these errors were encountered: