From 9c454b353846b90fde82d66e889a04c3d9725304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Fri, 15 Sep 2023 14:54:38 +0200 Subject: [PATCH] style guide: Add events and errors to the order of definitions at file level --- docs/style-guide.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/style-guide.rst b/docs/style-guide.rst index 4e42ea575..427ede5ee 100644 --- a/docs/style-guide.rst +++ b/docs/style-guide.rst @@ -1045,13 +1045,15 @@ No: Order of Layout *************** -Layout contract elements in the following order: +Contract elements should be laid out in the following order: 1. Pragma statements 2. Import statements -3. Interfaces -4. Libraries -5. Contracts +3. Events +4. Errors +5. Interfaces +6. Libraries +7. Contracts Inside each contract, library or interface, use the following order: