Skip to content

Commit

Permalink
Merge pull request #812 from crytic/dev-solc-recommendations
Browse files Browse the repository at this point in the history
Update solc recommendations
  • Loading branch information
montyly authored Mar 28, 2021
2 parents 66e2c1b + 82e72ea commit 965376a
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions slither/detectors/attributes/incorrect_solc.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ class IncorrectSolc(AbstractDetector):
We also recommend avoiding complex `pragma` statement."""
WIKI_RECOMMENDATION = """
Deploy with any of the following Solidity versions:
- 0.5.11 - 0.5.13,
- 0.5.15 - 0.5.17,
- 0.6.8,
- 0.6.10 - 0.6.11.
- 0.5.16 - 0.5.17
- 0.6.11 - 0.6.12
- 0.7.5 - 0.7.6
Use a simple pragma version that allows any of these versions.
Consider using the latest version of Solidity for testing."""

Expand All @@ -47,23 +46,20 @@ class IncorrectSolc(AbstractDetector):
LESS_THAN_TXT = "uses lesser than"

TOO_RECENT_VERSION_TXT = (
"necessitates a version too recent to be trusted. Consider deploying with 0.6.11"
"necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6"
)
BUGGY_VERSION_TXT = (
"is known to contain severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)"
)

# Indicates the allowed versions. Must be formatted in increasing order.
ALLOWED_VERSIONS = [
"0.5.11",
"0.5.12",
"0.5.13",
"0.5.15",
"0.5.16",
"0.5.17",
"0.6.8",
"0.6.10",
"0.6.11",
"0.6.12",
"0.7.5",
"0.7.6",
]

# Indicates the versions that should not be used.
Expand Down

0 comments on commit 965376a

Please sign in to comment.