HardhatError: HH700: Artifact for contract "Lock" not found

PLZ someone help…

Might be a little difference between your contract name in your solidity file and the contract name you’re trying to pull in your script file

How do i fix that?..

Make sure the name tally. What’s your contract name ?

Think its Dao

If you have the contract name as Dao having such with Dao in your script. hre.ethers.getContractFactory("Dao");

Where do i paste that line of code?

I put that in my script in the DAO.sol and in the hardhat config file and i still get the[Artifact for contract “Lock” not found

I mean your name in the contract should match as highlighted in the images below


I dont have that secound line of code, the const Dao = await hre.ethers.getContractFactory(“Dao”);

Were does that go in the Dao.sol?

Since you have made progress with this in your previous thread, please keep new updates there.