We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77cf950 commit 70870a6Copy full SHA for 70870a6
docs/style-guide.rst
@@ -1045,13 +1045,15 @@ No:
1045
Order of Layout
1046
***************
1047
1048
-Layout contract elements in the following order:
+Contract elements should be laid out in the following order:
1049
1050
1. Pragma statements
1051
2. Import statements
1052
-3. Interfaces
1053
-4. Libraries
1054
-5. Contracts
+3. Events
+4. Errors
+5. Interfaces
1055
+6. Libraries
1056
+7. Contracts
1057
1058
Inside each contract, library or interface, use the following order:
1059
0 commit comments