Was having the same problem and going crazy, my code was exactly like the tutorial, but one thing: the hardhat version.
After downgrading the hardhat version from 2.6.0 to 2.4.1 the issue has been fixed. (don't forget to delete the artifacts folder and run compile hardhat)
Hey Everyone, I have my primary skills in 📱AppDev (Flutter ) and secondary in 🌐WebDev (MERN). I also write📝 book review articles, you can check them out.
Was having the same problem and going crazy, my code was exactly like the tutorial, but one thing: the hardhat version.
After downgrading the hardhat version from 2.6.0 to 2.4.1 the issue has been fixed. (don't forget to delete the artifacts folder and run compile hardhat)
command please?
I'm having no problems with version
^2.8.2
so I'd try that one first.to change versions, do
npm install hardhat@^2.8.2
and just replace the numbers at the end