Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 1.14 KB

File metadata and controls

37 lines (32 loc) · 1.14 KB

4 - Layout

The layout of a Solidity source file can contain an arbitrary number of Pragma directives, import directives and structs/enums/contracts definitions.

The best-practices for layout within a contract is the following order:

  1. structs/enums
  2. state variables
  3. events
  4. errors
  5. modifiers
  6. constructor
  7. functions

Slide Screenshot

004.jpg


Slide Deck


References