diff --git a/slither/slithir/operations/high_level_call.py b/slither/slithir/operations/high_level_call.py index cf4d6d934..9e1d55c4e 100644 --- a/slither/slithir/operations/high_level_call.py +++ b/slither/slithir/operations/high_level_call.py @@ -103,7 +103,7 @@ class HighLevelCall(Call, OperationWithLValue): :return: bool ''' # If solidity >0.5, STATICCALL is used - if self.slither.solc_version and self.slither.solc_version.startswith('0.5.'): + if self.slither.solc_version and self.slither.solc_version >= '0.5.0': if isinstance(self.function, Function) and (self.function.view or self.function.pure): return False if isinstance(self.function, Variable):