[Contract Verification] Foundry verify-contract doesn't work #777
-
Team or ProjectZyfi EnvironmentMainnet Block ExplorerIssue Type
Contract Address0xFf948c6aEcE74108453b12e93Ac8C99e75f367bE Compiler TypeMulti-part contract zkSolc Version0.8.22 Solc Version0.8.22 Contract NameZFIToken Contract Code
Constructor ArgumentsNone Hardhat Verify Plugin VersionNo response Repo Link (Optional)No response Additional DetailsThat's the implementation contract of an upgradable contract |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 25 replies
-
It appears that you are encountering issues with the Here are a few steps you can take to troubleshoot and potentially resolve the issue:
By following these steps, you should be able to identify and resolve the issue with contract verification. If there are any more specific errors or messages you encounter during the process, those details could help further pinpoint the solution. 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.
-
@L0GYKAL you need to update your foundry-zksync version. Example usage:
|
Beta Was this translation helpful? Give feedback.
When moving between hardhat and foundry the resulting bytecode behaviour would stay the same as long as you use the same compilation options. Metadata might be different due to some inevitable changes in the compiler input ex. some paths changed. Storage layout should stay compatible between zksolc and solc versions, however I do not want to give you any definitive statements here. I would recommand referring to zksolc and solc changelogs. For mainnet deployments, I would recommand simulating any upgrades and testing contract behaviour in those simulations. My appologies for our late response here.