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

Contracts with the exact same deployed bytecode can be verified by hardhat but cannot be verified on explorer #250

Open
friday-james opened this issue Apr 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@friday-james
Copy link

🐛 Bug Report

📝 Description

Contracts with the exact same deployed bytecode can be verified by hardhat but cannot be verified on explorer.

Test contract verified by hardhat: https://sepolia.explorer.zksync.io/address/0x1097f8a418d36e3aB3A1B386A7977F67672Ec4Fc

Contract with the same deployed bytecode: https://sepolia.explorer.zksync.io/address/0x121f49040C4Ed3FA766557b6989B88aa3ea82082

The zksolc version, solc version, contract name and contract code are all copied from https://sepolia.explorer.zksync.io/address/0x1097f8a418d36e3aB3A1B386A7977F67672Ec4Fc , but explorer states that the deployed bytecode is not equal to generated one from given source.

image

Provide a clear and concise description of the bug.

🔄 Reproduction Steps

Deploy a contract using zksolc v1.4.0 and solc 0.8.9. Then try to verify it on explorer.

🤔 Expected Behavior

The contract can be verified.

😯 Current Behavior

The contract cannot be verified.

🖥️ Environment

Any relevant environment details.

📋 Additional Context

Add any other context about the problem here. If applicable, add screenshots to help explain.

📎 Log Output

Paste any relevant log output here.
@friday-james friday-james added the bug Something isn't working label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant