Open kushuchiha opened 1 year ago
@kushuchiha You do not need this line here const provider = new ethers.JsonRpcProvider("http://127.0.0.1:8545")
, but if you want to use it then it should be like this;
-const provider = new ethers.JsonRpcProvider("http://127.0.0.1:8545")
+const provider = new ethers.providers.JsonRpcProvider("http://127.0.0.1:8545")
What ethers version are you using? Hardhat doesn't support yet the latest ethers version. If you are using ethers 6 downgrading will fix the problem. You can do so running this command:
yarn upgrade ethers@^5.7.2
Lesson
Lesson 9
Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")
No response
Operating System
Windows
Describe the bug
I am getting following error for few days now, I have tried and surfed for possible solutions but couldn't lend on any,Please guide me to the issue here
My deploy-Raffle.js is as follows