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
These are a list of possible warnings we'd want to embed into the compiler based upon "best practices" in the field. Most deserve their own issue and discussion, and should be removed from this list as work is started.
Block.timestamp not allowed in functions
Extract magic numbers to constant
Fallback rejects those with value if it isn't marked payable
Modifying for loop iteration counting variable in loop body (can we create an infinite loop this way)
Warning on similar names (fuzzy matching)
Multiple declaration groups
Imports at the top of the file
Loops (check/estimate gas consumption so that loops don't exceed block gas limit) - For instance if we have a rough estimate of inner loops cost and outer loops cost we can add a check to see if the size is larger than the allowed amount. E.g. If we have 800 gas <= 100 outer code + size * 50 inner loop ==> size <= 14
Function ordered:
constructor
fallback function (if exists)
external
public
internal
private
The text was updated successfully, but these errors were encountered:
DJRHails
changed the title
Warning wishlist (Temp)
Warning wishlist
Aug 20, 2018
These are a list of possible warnings we'd want to embed into the compiler based upon "best practices" in the field. Most deserve their own issue and discussion, and should be removed from this list as work is started.
The text was updated successfully, but these errors were encountered: