Skip to content

Commit

Permalink
style: reorder interface to match coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
hexshire authored Apr 4, 2024
1 parent 39114a9 commit f755dd1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/interfaces/IGreeter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@ interface IGreeter {
*/
error Greeter_InvalidGreeting();

/*///////////////////////////////////////////////////////////////
LOGIC
//////////////////////////////////////////////////////////////*/
/**
* @notice Sets a new greeting
* @dev Only callable by the owner
* @param _newGreeting The new greeting to be set
*/
function setGreeting(string memory _newGreeting) external;

/*///////////////////////////////////////////////////////////////
VARIABLES
//////////////////////////////////////////////////////////////*/
Expand Down Expand Up @@ -72,4 +62,14 @@ interface IGreeter {
* @return _balance Current token balance of the caller
*/
function greet() external view returns (string memory _greeting, uint256 _balance);

/*///////////////////////////////////////////////////////////////
LOGIC
//////////////////////////////////////////////////////////////*/
/**
* @notice Sets a new greeting
* @dev Only callable by the owner
* @param _newGreeting The new greeting to be set
*/
function setGreeting(string memory _newGreeting) external;

Check warning on line 74 in src/interfaces/IGreeter.sol

View workflow job for this annotation

GitHub Actions / Lint Commit Messages

Function order is incorrect, external function can not go after external view function (line 64)
}

0 comments on commit f755dd1

Please sign in to comment.