|
|
@ -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): |
|
|
|