[Foundry] How to generate Standard JSON with foundry? #790
-
Team or ProjectNo response EnvironmentTestnet Select the Dev Tool you are usingFoundry Provide the version of the tool (if applicable)forge 0.0.2 (420660c 2024-11-21T00:27:54.875617523Z) Provide a brief description of the functionality you're trying to implement and the issue you are running into.I want to be able to generate the Standard JSON so that I can test a compilation using binaries (.exe)'s instead. Repo Link (Optional)No response Additional DetailsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
To generate Standard JSON using Foundry for ZKsync, you can utilize the
Here is the command you might use: forge build --zksync This command compiles your smart contracts for the ZKsync environment and outputs the necessary JSON files for further testing or deployment. For more detailed information on using Foundry with ZKsync, including testing and deploying smart contracts, you can refer to the Getting Started Guide. If you need further assistance or more in-depth discussion, consider visiting the ZKsync developers discussions on Github. 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 @wwwMalcolm -- to generate the standard JSON, try using:
Note, the standard JSON can only be generated if the contract has been deployed. |
Beta Was this translation helpful? Give feedback.
Hi @wwwMalcolm -- to generate the standard JSON, try using:
forge create --show-standard-json-input <CONTRACT>
Note, the standard JSON can only be generated if the contract has been deployed.