Merge pull request #441 from crytic/dev-reentrancy-0.6

Improve reentrancy detector for Solidity >=0.6
pull/445/head
Feist Josselin 5 years ago committed by GitHub
commit 87a3b5a3c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      slither/slithir/operations/high_level_call.py

@ -103,7 +103,7 @@ class HighLevelCall(Call, OperationWithLValue):
:return: bool :return: bool
''' '''
# If solidity >0.5, STATICCALL is used # 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): if isinstance(self.function, Function) and (self.function.view or self.function.pure):
return False return False
if isinstance(self.function, Variable): if isinstance(self.function, Variable):

Loading…
Cancel
Save