[ZK Stack] - (bug) HardhatError: HH700: Artifact for contract "SystemContext" not found. #791
-
Team or ProjectNo response Module Affected
Rust Version1.82.0 Operating System
Issue DescriptionWhile trying to deploy ecosystem using zkstack, we encountered below error. We never encountered this error earlier. Steps to reproduce:
Expected BehaviorContracts should get compiled Current BehaviorFailed to compile contracts Repository Link (if applicable)No response Additional DetailsNo response Prior Research
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
The error you're encountering, Here are a few steps you can take to resolve this issue:
If these steps do not resolve the issue, it might be helpful to look into the specific configurations of your Hardhat setup or any recent changes in the environment that might affect the build process. For more detailed troubleshooting, you can also visit the ZKsync developers discussions on Github for assistance from the community. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
Hi! The issue you encountered is usually caused by the caches generated by the foundry scripts. Could you please run |
Beta Was this translation helpful? Give feedback.
Just tried to reproduce:
zkstackup --local
inmain
branch46d75088
zkstack dev clean contracts-cache
cd contracts && cd system-contracts
yarn build
yarn preprocess:bootloader
the last 3 are basically the commands executed inside
zkstack
and they worked on my envplease verify that the manual execution works and retry with recompiled
zkstack
tool