[Contract Verification] Verification error: Compilation error - without any detail #760
-
Team or Projecttradable EnvironmentTestnet Block ExplorerIssue Type
Contract Address0xD0Def0312B4C1545df5c9Aef91dE6DE4503daa5c Compiler TypeSingle file zkSolc Version1.5.4 Solc Version0.8.27 Contract NameDeal Contract Code// SPDX-License-Identifier: MIT import { IERC6372 } from "@oz/contracts/interfaces/IERC6372.sol"; import { DEAL_MAX_HOLDERS } from "./Constants.sol"; /**
} Constructor Arguments" " Hardhat Verify Plugin VersionNo response Repo Link (Optional)No response Additional DetailsSimply trying to verify-contract using forge verify-contract and getting compilation error of already deployed contract without additional info. Submitting verification for [src/Deal.sol:Deal] at address 0xD0Def0312B4C1545df5c9Aef91dE6DE4503daa5c. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
It appears you are encountering a compilation error during the contract verification process on the ZKsync Testnet. This type of error typically indicates a mismatch or an issue with the contract's source code, compiler settings, or constructor arguments used during the deployment versus what is being used for verification. Here are a few steps and checks you can perform to potentially resolve this issue:
If after these checks the issue persists, I recommend reaching out to the ZKsync developer support or community forums with detailed information about your verification attempt, including the compiler version, contract source code, and any relevant deployment parameters. This can help in obtaining more specific guidance or identifying if there's a bug or issue with the verification tool itself. For further discussions and support, you can visit the ZKsync developers discussions on Github. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
@tradable-kash can you please update your foundry-zksync version by re-running the installation script: https://foundry-book.zksync.io/getting-started/installation#using-foundryup-zksync and try again. A recent fix addresses the compilation error during verification: matter-labs/foundry-zksync#690 If that does not work please provide a link to repo so that we can reproduce 🙏 |
Beta Was this translation helpful? Give feedback.
No worries - working on a fix for foundry-zksync so verification errors are more verbose. Thanks for posting!