Fix solidity calls analysis

pull/2555/head
Simone 3 months ago
parent cee74517e5
commit 13b25e8756
  1. 4
      slither/core/declarations/function.py

@ -1661,7 +1661,9 @@ class Function(SourceMapping, metaclass=ABCMeta): # pylint: disable=too-many-pu
internal_calls = [item for sublist in internal_calls for item in sublist] internal_calls = [item for sublist in internal_calls for item in sublist]
self._internal_calls = list(set(internal_calls)) self._internal_calls = list(set(internal_calls))
self._solidity_calls = [c for c in internal_calls if isinstance(c, SolidityFunction)] self._solidity_calls = [
ir for ir in internal_calls if isinstance(ir.function, SolidityFunction)
]
low_level_calls = [x.low_level_calls for x in self.nodes] low_level_calls = [x.low_level_calls for x in self.nodes]
low_level_calls = [x for x in low_level_calls if x] low_level_calls = [x for x in low_level_calls if x]

Loading…
Cancel
Save