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
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,13 @@ In addition to the official Solidity Style Guide we have a number of other conve
131
131
abstract contract AccessControl is ..., {
132
132
```
133
133
134
+
* Return values are generally not named, unless they are not immediately clear or there are multiple return values.
135
+
136
+
```solidity
137
+
function expiration() public view returns (uint256) { // Good
138
+
function hasRole() public view returns (bool isMember, uint32 currentDelay) { // Good
139
+
```
140
+
134
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.
135
142
136
143
* Custom errors should be declared following the [EIP-6093](https://eips.ethereum.org/EIPS/eip-6093) rationale whenever reasonable. Also, consider the following:
0 commit comments