Lesson 6 : Deploying Simple Storage from hardhat #5091
-
|
Hey fellas! Anyone can help me with this, would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
|
@usman-2000 It did not find the artifacts for |
Beta Was this translation helpful? Give feedback.
-
|
Please have you fixed the error. I'm currently facing similar challenge. Please if you've solved yours, share the solution that worked for you. Thanks.. |
Beta Was this translation helpful? Give feedback.
-
|
make sure your contracts name is the same as the name in your artifacts directories' |
Beta Was this translation helpful? Give feedback.
-
|
make sure your contracts name is the same as the name in your artifacts directories' const SimpleStorageFactory = await ethers.getContractFactory("SimpleStorage") note the name of the contract must be the same as artifacts |
Beta Was this translation helpful? Give feedback.
@usman-2000 It did not find the artifacts for
SimpleStoragecontract, either you have not compiled the contract or it is not compiled correctly. Run these commandsnpx hardhat cleanand thennpx hardhat compile