Skip to content

Contract verification fails on UI for multi-file solidity contracts #489

@akshat-zeeve

Description

@akshat-zeeve

🐛 Bug Report

📝 Description

Contract verification fails on the zkSync Explorer UI when using multiple file contracts

🔄 Reproduction Steps

  1. Prepare a smart contract that uses imports and spans across multiple Solidity files
  2. Try verifying the contract using the zkSync Explorer UI
  3. Verification fails with the error:
    Deployed bytecode is not equal to generated one

🤔 Expected Behavior

The contract should verify successfully if the correct constructor arguments and compiler settings are used, just like it does when verified using Hardhat

😯 Current Behavior

Verification fails on the UI for multiple file contracts, but works when using Hardhat
For single file contracts, both UI and Hardhat verification succeed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions