Improve reentrancy on solidity 0.6

pull/441/head
Josselin 5 years ago
parent 746e47ad71
commit ce9494e70e
  1. 2
      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):

Loading…
Cancel
Save