Closed DylanCodesStuff closed 1 year ago
I figured it out. I'll just leave this here in case it helps someone else. But the latest version of ethers is breaking the deployment, as it's not yet supported by hardhat. I was using ethers"^6.1.0" in my package.json. I changed it to ethers"^5.6.1". I saved that file. Then i opened the terminal and ran yarn add ethers@5.6.1 That fixed it. Wow, GOOD LUCK !
The error is as follows
I am following along the freecodecamp tutorial and I did this TWICE. I thought maybe I mistyped something terribly. But no it still doesn't work. I remade the directory so I'm assuming its not a install/dependency issue but I'm a noob so who knows. I searched and tried some tips surrounding this error but I could not find a solution. I'm lost please help, I'll upload my js files below. Please request more if you think they will help.
00-deploy-mocks.js
01-deploy-raffle.js
hardhat.config.js
helper-hardhat-config.js