Solhint

Solhint

Community Analyzer

Visibility modifier must be first in list of modifiers SOLHINT-W1035

Style
Minor

Visibility modifier must be first in list of modifiers.

Bad Practice

  1. Visibility modifier not placed first
    pragma solidity 0.4.4;
    
    
    contract A {
      function a() ownable() public payable {}
    }
    

Recommended

  1. Visibility modifier placed first
    pragma solidity 0.4.4;
    
    
    contract A {
      function a() public ownable() payable {}
    }
    

Learn more

visibility-modifier-order on Solhint's documentation.