On compiling, I’m getting this:
$ yarn hardhat compile
yarn run v1.22.22
$ "C:\Users\HP FOLIO\.vscode\MyHotel\node_modules\.bin\hardhat" compile
Nothing to compile
Done in 3.66s.
Here is the GitHub repo.
On compiling, I’m getting this:
$ yarn hardhat compile
yarn run v1.22.22
$ "C:\Users\HP FOLIO\.vscode\MyHotel\node_modules\.bin\hardhat" compile
Nothing to compile
Done in 3.66s.
Here is the GitHub repo.
That’s because your contracts are already compiled and the corresponding artifacts are being created in the artifacts
folder.
So, if you haven’t done any change to any of your contracts and keep compiling, then it’ll keep showing Nothing to compile
.
If you want to do a fresh compilation, then you must delete the existing artifacts that you can directly achieve by executing this command:
yarn hardhat clean
Now, when you compile using yarn hardhat compile
, it’ll compile all the contracts and create a new artifacts
folder containing the artifacts corresponding to the latest compiled contracts.
MegaERC20
, but you've imported it as IHotelToken
, so I've corrected that as well. After doing these changes, I've created a PR.
Commented
Oct 13 at 16:56
yarn install
and then the contracts would be compiled successfully using yarn hardhat compile
command.
Commented
Oct 13 at 16:57