pull/129/head
Josselin 6 years ago
parent ce1f456daa
commit a56359d1de
  1. 2
      slither/detectors/attributes/incorrect_solc.py
  2. 3
      tests/solc_version_incorrect.sol

@ -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]

@ -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{
Loading…
Cancel
Save