Skip to content

[Contract Verification] Verification error: Compilation error #762

Discussion options

You must be logged in to vote

@mikhailcheburkahtin hello 👋

Looks like the issue is coming from here:

{"status":"failed","error":"Compilation error","compilationErrors":["TypeError: Definition of base has to precede definition of derived contract\n  --> src/interfaces/IDealManager.sol:15:5:\n   |\n15 |     IBaseManager,\n   |     ^^^^^^^^^^^^\n\n"]}

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:

contract DealMan…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@tradable-kash
Comment options

@dutterbutter
Comment options

@dutterbutter
Comment options

Answer selected by dutterbutter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contract-verification Questions for contract verification
3 participants