Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to verify contract from Etherscan's ZKsync Explorer #359

Open
MexicanAce opened this issue Dec 16, 2024 · 1 comment
Open

Add option to verify contract from Etherscan's ZKsync Explorer #359

MexicanAce opened this issue Dec 16, 2024 · 1 comment

Comments

@MexicanAce
Copy link
Contributor

🌟 Feature Request

📝 Description

Add a Verify from Etherscan button on the Smart Contract Verification page, that checks if the contract is already verified at zksync.network and uses that public information to also verify the contract within the Block Explorer.

This button should only be displayed as an option if there's a corresponding Etherscan block explorer for the chain (e.g. Mainnet & Sepolia but not partner ZK chains)

🤔 Rationale

Sometimes there are smart contracts that are not verified on Block Explorer, but are verified on ZKsync's Etherscan explorer. It would be really great if there was an easy/quick option on the Smart Contract Verification page that would attempt to verify the contract based on the information from zksync.network

📋 Additional Context

Example contract that's verified on Etherscan's Explorer: https://era.zksync.network/address/0xE629B208046F7A33dE3A43931c9FE505A7Ac3d36#code

But unverified on our Block Explorer: https://explorer.zksync.io/contracts/verify?address=0xE629B208046F7A33dE3A43931c9FE505A7Ac3d36

@popzxc
Copy link
Member

popzxc commented Dec 16, 2024

That would be a nice feature indeed (though I wonder if we can make it automatic), but first it has to be supported in the contract verifier.

Created a pre-requisite task: matter-labs/zksync-era#3390

This issue is blocked until then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants