[Contract Verification] Verification error: Compilation error #762
-
Team or ProjectTradable EnvironmentTestnet Block ExplorerIssue Type
Contract Address0xDF249f087C3ACfc381D810A38CC5C7055A5E0F52 Compiler TypeSingle file zkSolc Version1.5.4 Solc Version0.8.27 Contract NameDealManager Contract Code// SPDX-License-Identifier: MIT import { AccessManagedUpgradeable } from "@oz/contracts-upgradeable/access/manager/AccessManagedUpgradeable.sol"; import { IBaseManager, BaseManager, IKYCManager } from "./abstracts/BaseManager.sol"; /**
} Constructor Arguments" " Hardhat Verify Plugin VersionNo response Repo Link (Optional)No response Additional DetailsTrying to verify contract using forge but getting compilation error Submitting verification for [src/DealManager.sol:DealManager] at address 0x914C727FbA5Beeafcc587fD72A4c1F864451382E. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It appears you are encountering a compilation error while trying to verify your
If after these checks the issue persists, you might want to consider reaching out for more specific support. You can engage with the ZKsync developer community on GitHub discussions for more in-depth troubleshooting. 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.
-
@mikhailcheburkahtin hello 👋 Looks like the issue is coming from here:
Specifically, The compilation error you're encountering is due to a Solidity restriction: when you declare a derived contract, the base contracts must be defined in a specific order in your inheritance hierarchy. The base contract should appear before the derived contract in the inheritance list. In your contract DealManager is
Initializable,
AccessManagedUpgradeable,
BaseManager, // <-- This should be listed before any contract that depends on it
InvestmentManager,
PayoutManager,
IDealManager Check if Suggested Fix
For example, if contract DealManager is
Initializable,
AccessManagedUpgradeable,
BaseManager,
InvestmentManager,
PayoutManager,
IDealManager
{
// Contract code...
} This should resolve the compilation error. If not let me know ! I am in the process of updating foundry-zksync verification error verbosity so thank you for reporting! --- Update ----
|
Beta Was this translation helpful? Give feedback.
@mikhailcheburkahtin hello 👋
Looks like the issue is coming from here:
Specifically,
The compilation error you're encountering is due to a Solidity restriction: when you declare a derived contract, the base contracts must be defined in a specific order in your inheritance hierarchy. The base contract should appear before the derived contract in the inheritance list.
In your
DealManager
contract, you have multiple inheritance: