[Compilers]<Disabling errors/warning in zksolc> #740
-
Team or ProjectNo response Which compiler are you using?
Which version of Solidity or Vyper?0.8.20 zksolc/zkvyper version?1.5.6 Explain the issueHey, I'm trying to compile a contract and encountering the following error: As mentioned in the error message, it's possible to disable the error by: 1) As I understand, manually creating a JSON input file with suppressedErrors = ["sendtransfer"] when compiling the code manually with zkSolc in Standard JSON Mode. However, when using tools like HardHat or Foundry (e.g., running forge build), the JSON input is dynamically generated by the tool. This makes it difficult to access or modify the input file directly (reference: https://docs.zksync.io/zk-stack/components/compiler/toolchain/solidity#standard-json). Additionally, I have a question when using foundry for deployment: Does Foundry-zksync provide or enable users to ignore error codes in the Foundry.toml file?? For example, in the original Foundry, we can use something like: ignored_warnings_from = ["src/periphery/contracts/treasury/RevenueSplitter.sol"] I have tested a list of supported aliases for the original Foundry: 2) Extra) Link to your repo?No response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello, Regarding your query about disabling errors or warnings in
Unfortunately, if these errors are critical and cannot be refactored out, this might limit the use of Foundry-zksync for your specific needs at this time. You might consider reaching out to the ZKsync development community or checking for updates in the toolchain that might address these limitations in the future. For the most current and detailed guidance, you may want to keep an eye on updates in the ZKsync documentation or community discussions. 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.
-
In Hardhat, you can add this in the zksolc settings in the
Let me check what's the corresponding setting in foundry |
Beta Was this translation helpful? Give feedback.
In Hardhat, you can add this in the zksolc settings in the
hardhat.config.ts
file as detailed in the documentationLet me check what's the corresponding setting in foundry