Slither

Slither

Community Analyzer

Missing inheritance SLITHER-W1076

Anti-pattern
Minor

Detect missing inheritance.

Exploit Scenario

interface ISomething {
    function f1() external returns(uint);
}

contract Something {
    function f1() external returns(uint){
        return 42;
    }
}

Something should inherit from ISomething.

Recommendation

Inherit from the missing interface or contract.

Learn more

missing-inheritance on Slither's wiki.