From a56359d1de82fe590a51936443cd117df61719e3 Mon Sep 17 00:00:00 2001 From: Josselin Date: Mon, 14 Jan 2019 14:12:25 +0100 Subject: [PATCH] Minor --- slither/detectors/attributes/incorrect_solc.py | 2 +- tests/{old_solc.sol => solc_version_incorrect.sol} | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) rename tests/{old_solc.sol => solc_version_incorrect.sol} (55%) diff --git a/slither/detectors/attributes/incorrect_solc.py b/slither/detectors/attributes/incorrect_solc.py index 317517948..27add2eb4 100644 --- a/slither/detectors/attributes/incorrect_solc.py +++ b/slither/detectors/attributes/incorrect_solc.py @@ -30,7 +30,7 @@ class IncorrectSolc(AbstractDetector): LESS_THAN = "it uses lesser than" # Indicates the allowed versions. - ALLOWED_VERSIONS = ["0.4.25", "0.5.2", "0.5.3"] + ALLOWED_VERSIONS = ["0.4.24", "0.4.25", "0.5.2", "0.5.3"] def _check_version(self, version): op = version[0] diff --git a/tests/old_solc.sol b/tests/solc_version_incorrect.sol similarity index 55% rename from tests/old_solc.sol rename to tests/solc_version_incorrect.sol index a162b15ac..49b5f3d1b 100644 --- a/tests/old_solc.sol +++ b/tests/solc_version_incorrect.sol @@ -1,6 +1,5 @@ // The version pragma below should get flagged by the detector -// Reason: The expression "^0.4.0 >0.4.2" allows old solc (<0.4.23) -pragma solidity ^0.4.24; +pragma solidity ^0.4.23; pragma solidity >=0.4.0 <0.6.0; contract Contract{