[ZK Stack] - Failure at ecosystem init #823
Replies: 2 comments 7 replies
-
It appears that the issue you're encountering is related to the path resolution for the OpenZeppelin contracts in your Foundry setup. This is a common issue when the relative paths in the Here are a few steps you can try to resolve this issue:
If these steps do not resolve the issue, it might be beneficial to look into any specific configurations or environmental factors that could be affecting the path resolution in your setup. 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 @thomas-nguy, do you have the latest version of |
Beta Was this translation helpful? Give feedback.
-
Team or Project
Cronos Labs
Module Affected
Rust Version
1.82.0
Operating System
Issue Description
Hi
I am following the guide to setup the dev environment
https://github.com/matter-labs/zksync-era/tree/main/zkstack_cli
When running the command
zkstack ecosystem init
, I am facing an error when building the contractsIt seems that the foundry mapping is not working well on my machine.
Looking at the
l1-contracts/lib
folders, it seems the package use relative mapping to the real directoryhttps://github.com/matter-labs/era-contracts/tree/46d75088e7ddb534101874c3ec15b877da1cb417/l1-contracts/lib
For example:
https://github.com/matter-labs/era-contracts/blob/46d75088e7ddb534101874c3ec15b877da1cb417/l1-contracts/lib/openzeppelin-contracts-v4
I can bypass this error if I rewrite the
foundry.toml
with absolute path herehttps://github.com/matter-labs/era-contracts/blob/46d75088e7ddb534101874c3ec15b877da1cb417/l1-contracts/foundry.toml
But it does not seem to be a sustainable solution
Does anyone faces the same issues or any clue how to fix?
Thanks
Expected Behavior
Able to compile
Current Behavior
Throw error at contract compilation
Repository Link (if applicable)
No response
Additional Details
No response
Prior Research
Beta Was this translation helpful? Give feedback.
All reactions