diff --git a/hardhat-scripts/deploy-strategy.ts b/hardhat-scripts/deploy-strategy.ts index 9517127f..03242d5b 100644 --- a/hardhat-scripts/deploy-strategy.ts +++ b/hardhat-scripts/deploy-strategy.ts @@ -130,7 +130,7 @@ async function main() { console.log(await managedSigner.getAddress()) // Deploy Strategy - const Strategy = await hre.ethers.getContractFactory("src/Strategy.sol:Strategy"); + const Strategy = await hre.ethers.getContractFactory("out/Strategy.sol:Strategy"); const connectedStrategy = Strategy.connect( managedSigner diff --git a/hardhat.config.ts b/hardhat.config.ts index 7de3ed9b..d9e5e349 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -47,9 +47,10 @@ const config: HardhatUserConfig = { }, }, paths: { - sources: "./src", // Specify the main directory for source files + sources: "./src", // Where your contracts are + artifacts: "./artifacts", // Where compiled artifacts go + cache: "./cache" // Cache directory }, - networks: { sepolia: { url: process.env.SEPOLIA_RPC_URL || "",