Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.06 KB

Use descriptive names for contracts and libraries.md

File metadata and controls

27 lines (22 loc) · 1.06 KB

Use descriptive names for contracts and libraries The code base makes use of many different contracts, abstract contracts, interfaces, and libraries for inheritance and code reuse.

In principle, this can be a good practice to avoid repeated use of similar code.

However, with no descriptive naming conventions to signal which files would contain meaningful logic, codebase becomes difficult to navigate.

Recommendation:

Use descriptive names for contracts and


Slide Screenshot

122.png


Slide Text

  • ConsenSys Audit Growth DeFi Finding 5.6
  • Naming Convention & Readability
  • Multiple Contracts
  • Code Reuse & Naming
  • Use Descriptive Names

References


Tags