Lesson 16 Error: cannot find artifact "Box" #5979
Unanswered
cryptocambi
asked this question in
Q&A
Replies: 2 comments 6 replies
-
make sure you have the contract "box.sol" (case sensitive) in the "contracts" folder. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Try delete cache folders
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when I deploy the box contract I am having this error:
An unexpected error occurred:
Error: ERROR processing C:\Users\K\hh-fcc\hardhat-upgrade-fcc\deploy\01-deploy-box.js:
Error: cannot find artifact "Box"
at getArtifact (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat-deploy\src\DeploymentsManager.ts:208:17)
at getArtifactFromOptions (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat-deploy\src\helpers.ts:503:20)
at _getProxyInfo (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat-deploy\src\helpers.ts:1302:24)
at _deployViaProxy (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat-deploy\src\helpers.ts:1455:9)
at Object.module.exports [as func] (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\deploy\01-deploy-box.js:11:15)
at DeploymentsManager.executeDeployScripts (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat-deploy\src\DeploymentsManager.ts:1226:22)
at DeploymentsManager.runDeploy (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat-deploy\src\DeploymentsManager.ts:1059:5)
at SimpleTaskDefinition.action (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat-deploy\src\index.ts:438:5)
at Environment._runTaskDefinition (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
at Environment.run (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat\src\internal\core\runtime-environment.ts:166:14)
at DeploymentsManager.executeDeployScripts (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat-deploy\src\DeploymentsManager.ts:1229:19)
at DeploymentsManager.runDeploy (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat-deploy\src\DeploymentsManager.ts:1059:5)
at SimpleTaskDefinition.action (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat-deploy\src\index.ts:438:5)
at Environment._runTaskDefinition (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
at Environment.run (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat\src\internal\core\runtime-environment.ts:166:14)
at SimpleTaskDefinition.action (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat-deploy\src\index.ts:584:32)
at Environment._runTaskDefinition (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
at Environment.run (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat\src\internal\core\runtime-environment.ts:166:14)
at SimpleTaskDefinition.action (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat-deploy\src\index.ts:669:5)
at Environment._runTaskDefinition (C:\Users\K\hh-fcc\hardhat-upgrade-fcc\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
The sol contract and the deploy contract seems correct, I deleted artifact and cache several time and re-run it but always same issue. Am I missing some modules?
Here my repo:
https://github.com/cryptocambi/hardhat-proxy-fcc
Beta Was this translation helpful? Give feedback.
All reactions