From ce9494e70e87bd28a385e8028a8694d4f93aef13 Mon Sep 17 00:00:00 2001 From: Josselin Date: Wed, 15 Apr 2020 20:14:37 +0200 Subject: [PATCH] Improve reentrancy on solidity 0.6 --- slither/slithir/operations/high_level_call.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):