-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zkforge zkbuild Error: Failed to compile smart contracts with zksolc #285
Comments
I have tried install zksolc v1.4.0 and using it from a folder like
but I still get the same error,
|
Issue seems to occur with all zkforge related commands. How do I fix this compiler issue? @bxpana |
@yohanelly95 What I see you tried to specify zksol compiler with |
@OmegaTymbJIep I see, what is the fix/workaround required then? This error persists
|
When will it be solved? |
@yohanelly95 Try to remove the |
Hey @yohanelly95 Can you provide a repo that I may reproduce the issue? |
I am just running the zkbuild command inside a |
I have pushed the changes to bridge_v2 folder here https://github.com/yohanelly95/foundry-zksync @dutterbutter |
when I run
I have shared the repo details in the message above @OmegaTymbJIep |
I have the exact same error running The problem occurs during just running |
zkforge zkbuild
The application panicked (crashed).
Message: called `Result::unwrap()` on an `Err` value: Error("missing field `contracts`", line: 1, column: 2081)
Location: crates/common/src/zk_compile.rs:1164
This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Aborted |
@OmegaTymbJIep, your suggestion does not work either: zkforge zkbuild --use-zksolc v1.3.23
zksolc not found in `.zksync` directory. Downloading zksolc compiler from https://github.com/matter-labs/zksolc-bin/releases/download/v1.3.23/zksolc-linux-amd64-musl-v1.3.23
The application panicked (crashed).
Message: called `Result::unwrap()` on an `Err` value: Error("missing field `contracts`", line: 1, column: 2081)
Location: crates/common/src/zk_compile.rs:1164
This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Aborted |
same here, the error comes up when running zkforge commands in a scaffolded project. In my case |
@zhangninghai, do you have the same problem too? |
Hey folks 👋 We are in the process of releasing a new version of our Foundry implementation that will handle these situations much better. I apologize for the inconvenience currently being experienced, as this is an early alpha version we appreciate the reported issue. We are tracking to make a pre-release of the new version this week. |
Hey @yohanelly95! we've deprecated |
The original reported issue is known to happen when |
Component
zkForge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (4307bfb 2024-03-20T06:25:29.717831000Z)
What command(s) is the bug in?
zkforge zkbuild and zkforge test
Operating System
macOS (Apple Silicon)
Describe the bug
When I run
zkforge zkbuild
I get the error:How do I resolve this? Is there a flag or anything required here.
The text was updated successfully, but these errors were encountered: