You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GUIDELINES.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ In addition to the official Solidity Style Guide we have a number of other conve
117
117
118
118
Some standards (e.g. ERC-20) use present tense, and in those cases the
119
119
standard specification is used.
120
-
120
+
121
121
* Interface names should have a capital I prefix.
122
122
123
123
```solidity
@@ -141,7 +141,7 @@ In addition to the official Solidity Style Guide we have a number of other conve
141
141
* Unchecked arithmetic blocks should contain comments explaining why overflow is guaranteed not to happen. If the reason is immediately apparent from the line above the unchecked block, the comment may be omitted.
142
142
143
143
* Custom errors should be declared following the [EIP-6093](https://eips.ethereum.org/EIPS/eip-6093) rationale whenever reasonable. Also, consider the following:
144
-
144
+
145
145
* The domain prefix should be picked in the following order:
146
146
1. Use `ERC<number>` if the error is a violation of an ERC specification.
147
147
2. Use the name of the underlying component where it belongs (eg. `Governor`, `ECDSA`, or `Timelock`).
@@ -153,3 +153,18 @@ In addition to the official Solidity Style Guide we have a number of other conve
153
153
4. Declare the error in an extension if the error only happens in such extension or child contracts.
154
154
155
155
* Custom error names should not be declared twice along the library to avoid duplicated identifier declarations when inheriting from multiple contracts.
156
+
157
+
* Numeric literals should use appropriate formats based on their purpose to improve code readability:
0 commit comments