Skip to content

[Contract Verification] Foundry verify-contract doesn't work #777

Discussion options

You must be logged in to vote

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.

Replies: 2 comments 25 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
25 replies
@hoshiyari420
Comment options

@MexicanAce
Comment options

@hoshiyari420
Comment options

@cytadela8
Comment options

Answer selected by cytadela8
@hoshiyari420
Comment options

@L0GYKAL
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contract-verification Questions for contract verification
6 participants