Skip to content

Lesson 8: Uncaught (in promise) TypeError: ethers.providers.getWeb3Provider is not a constructor #2275

Discussion options

You must be logged in to vote

@daswanihimanshu010 replace getWeb3Provider(windom.ethereum) with Web3Provider(window.ethereum)
It should be const provider = new ethers.providers.Web3Provider(window.ethereum)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@daswanihimanshu010
Comment options

Answer selected by daswanihimanshu010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants