20,000 USDC
View results
Submission Details
Severity: gas
Valid

Function ordering does not follow the Solidity style guide

Summary

According to the Solidity style guide, functions should be laid out in the following order: constructor(), receive(), fallback(), external, public, internal, private. The functions listed below do not follow this layout. (If at least one function was found to be out of order, the contract and one function is listed. For the listed contracts, all functions should be examined for proper ordering.)

Vulnerability Details

There is 1 instance of this issue.

File: src/Beedle.sol
/// @audit found public/internal/private before external function: mint()
9: contract Beedle is Ownable, ERC20, ERC20Permit, ERC20Votes {
File Link Instance Count Instance Link
Beedle.sol 1 9

Impact

Decreased readability and maintainability.

Tools Used

baudit: a custom static code analysis tool; manual review

Recommendations

To increase the readability and to increase standardization, order functions per the Solidity style guide.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.