diff --git a/tests/expected_json/old_solc.sol.json.solc-version.json b/tests/expected_json/old_solc.sol.json.solc-version.json index ed1b15138..c653aff11 100644 --- a/tests/expected_json/old_solc.sol.json.solc-version.json +++ b/tests/expected_json/old_solc.sol.json.solc-version.json @@ -22,13 +22,11 @@ "starting_column": null, "ending_column": null }, - "additional_fields": { - "directive": [ - "solidity", - "0.4", - ".21" - ] - } + "directive": [ + "solidity", + "0.4", + ".21" + ] } ] } diff --git a/tests/expected_json/old_solc.sol.json.solc-version.txt b/tests/expected_json/old_solc.sol.json.solc-version.txt index 547cbd3f2..92f5c7b09 100644 --- a/tests/expected_json/old_solc.sol.json.solc-version.txt +++ b/tests/expected_json/old_solc.sol.json.solc-version.txt @@ -1,5 +1,4 @@ INFO:Detectors: Pragma version "0.4.21" allows old versions (None) Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#incorrect-version-of-solidity -INFO:Slither:/home/travis/build/crytic/slither/scripts/../tests/expected_json/old_solc.sol.json.solc-version.json exists already, the overwrite is prevented INFO:Slither:tests/old_solc.sol.json analyzed (1 contracts), 1 result(s) found diff --git a/tests/expected_json/pragma.0.4.24.pragma.json b/tests/expected_json/pragma.0.4.24.pragma.json index f422fdd40..cfa7f995f 100644 --- a/tests/expected_json/pragma.0.4.24.pragma.json +++ b/tests/expected_json/pragma.0.4.24.pragma.json @@ -24,14 +24,12 @@ "starting_column": 1, "ending_column": 25 }, - "additional_fields": { - "directive": [ - "solidity", - "^", - "0.4", - ".24" - ] - } + "directive": [ + "solidity", + "^", + "0.4", + ".23" + ] }, { "type": "pragma", @@ -49,14 +47,12 @@ "starting_column": 1, "ending_column": 25 }, - "additional_fields": { - "directive": [ - "solidity", - "^", - "0.4", - ".24" - ] - } + "directive": [ + "solidity", + "^", + "0.4", + ".24" + ] } ] } diff --git a/tests/expected_json/solc_version_incorrect.solc-version.json b/tests/expected_json/solc_version_incorrect.solc-version.json index 94f88dbb5..9c6b8b9f8 100644 --- a/tests/expected_json/solc_version_incorrect.solc-version.json +++ b/tests/expected_json/solc_version_incorrect.solc-version.json @@ -24,17 +24,12 @@ "starting_column": 1, "ending_column": 25 }, - "additional_fields": { - "directive": [ - "solidity", - ">=", - "0.4", - ".0", - "<", - "0.6", - ".0" - ] - } + "directive": [ + "solidity", + "^", + "0.4", + ".23" + ] } ] }, @@ -60,17 +55,15 @@ "starting_column": 1, "ending_column": 32 }, - "additional_fields": { - "directive": [ - "solidity", - ">=", - "0.4", - ".0", - "<", - "0.6", - ".0" - ] - } + "directive": [ + "solidity", + ">=", + "0.4", + ".0", + "<", + "0.6", + ".0" + ] } ] }