Error: Cannot find artifact "mockV3Aggregator" #396
Answered
by
PatrickAlphaC
Muhammad-Abdullah012
asked this question in
Q&A
-
const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
const { deployer } = await hre.getNamedAccounts();
const { deploy, log } = hre.deployments;
if (DEVELOPMENT_CHAINS.includes(network.name)) {
log("!..Deploying Mock..!");
await deploy("mockV3Aggregator", {
contract: "mockV3Aggregator",
from: deployer,
log: true,
args: [DECIMALS, INITIAL_ANSWER],
});
log("Mocks Deployed...");
log("-------------------------------------------");
}
};
export default func; Error Message:
MockV3Aggregator is there in Artifacts directory but still error.. |
Beta Was this translation helpful? Give feedback.
Answered by
PatrickAlphaC
Jun 17, 2022
Replies: 2 comments 2 replies
-
Change |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
PatrickAlphaC
-
i am having the exact same error and i have written MockV3Aggregator only , still getting the error can any1 please help? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change
mockV3Aggregator
toMockV3Aggregator