Skip to content

Commit

Permalink
Fix solidity calls analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
smonicas committed Sep 13, 2024
1 parent cee7451 commit 13b25e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion slither/core/declarations/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,9 @@ def _analyze_calls(self) -> None:
internal_calls = [item for sublist in internal_calls for item in sublist]
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 for x in low_level_calls if x]
Expand Down

0 comments on commit 13b25e8

Please sign in to comment.