Closed ChiHaoLu closed 5 months ago
Thanks @ChiHaoLu we are in the process of improving compiling so this is very helpful.
Hello, I wanted to let you know that this should been taken care of by #357!
You should now get a better error when using forge build --zksync
which also lets you know what you need to do next (and I expect it to mention SignatureChecker
).
Looking at the information you provided tho, I expect you to encounter #382 when doing forge test --zksync
, please take a look there for more information.
If you still encounter this error please let us know
I tried your repo locally and I got the expected error.
--> contracts/util/SignatureChecker.sol
Error:
Missing libraries detected [ZkMissingLibrary { contract_name: "SignatureChecker", contract_path: "contracts/util/SignatureChecker.sol", missing_libraries: [] }]
Run the following command in order to deploy the missing libraries:
forge create --deploy-missing-libraries --private-key <PRIVATE_KEY> --rpc-url <RPC_URL> --chain <CHAIN_ID> --zksync
Thank you for your report! If the issue persists on your end, please reopen this issue.
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
No response
What command(s) is the bug in?
forge build --zksync
Operating System
macOS (Apple Silicon)
Describe the bug
I am building the a project with zkSync-foundry, but I meet a problem returns error when compiling:
My repo is here, you can use it to reproduce.
I found some similar issues, but I still can't figure out how to solve this problem.