Solhint

Solhint

Community Analyzer

Enforce the return values of a function to be named SOLHINT-W1028

Style
Minor

Enforce the return values of a function to be named

Bad Practice

  1. Function definition with UNNAMED return values
function checkBalance(address wallet) external view returns(uint256) {}

Recommended

  1. Function definition with named return values
function checkBalance(address wallet) external view returns(uint256 retBalance) {}

Learn more

named-return-values on Solhint's documentation.