From be333e97af2c15c2796ff7a7ce7ee41b49dea06f Mon Sep 17 00:00:00 2001 From: Tadashi Date: Sat, 19 Feb 2022 21:17:10 +0100 Subject: [PATCH] WIP: Fixed code for detecting solc version --- slither/detectors/functions/external_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/detectors/functions/external_function.py b/slither/detectors/functions/external_function.py index 3f4c78f0c..c95191ad5 100644 --- a/slither/detectors/functions/external_function.py +++ b/slither/detectors/functions/external_function.py @@ -109,7 +109,7 @@ class ExternalFunction(AbstractDetector): results = [] # After solc 0.6.9, calldata arguments are allowed in public functions - if self.compilation_unit.solc_version >= "0.6.9": + if self.compilation_unit.solc_version >= "0.7." or self.compilation_unit.solc_version in ["0.6.9","0.6.10","0.6.11"]: return [] # Create a set to track contracts with dynamic calls. All contracts with dynamic calls could potentially be