matter-labs / foundry-zksync

Fork of Foundry tailored for zkSync environment
Apache License 2.0
299 stars 130 forks source link

forge verify #102

Closed KittyFu307 closed 4 months ago

KittyFu307 commented 1 year ago

Component

Forge

Describe the feature you would like

want to use forge to verify my contract instead of manual verify

Additional context

No response

caffeinum commented 1 year ago

+1!

I would love to deploy using zkforge, but verify in Hardhat – but it says that the compiled contract doesn't match the bytecode.

caffeinum commented 1 year ago

I wonder how hard it is to just add a zksync explorer as a verification provider somewhere here: https://github.com/matter-labs/foundry-zksync/blob/main/cli/src/cmd/forge/verify/provider.rs ?

I'd contribute if that's a good starting issue

Edit: I wonder if there's any documentation for explorer verify API except for https://era.zksync.io/docs/tools/hardhat/hardhat-zksync-verify.html#verify-smart-contract-programmatically or sources at https://github.com/matter-labs/hardhat-zksync/tree/main/packages/hardhat-zksync-verify/src/solc

hujw77 commented 1 year ago

+1!

I would love to deploy using zkforge, but verify in Hardhat – but it says that the compiled contract doesn't match the bytecode.

I face the same problem.