From 13b25e8756a4bd42a84dde1a66f892cd7012a508 Mon Sep 17 00:00:00 2001 From: Simone Date: Fri, 13 Sep 2024 16:47:36 +0200 Subject: [PATCH] Fix solidity calls analysis --- slither/core/declarations/function.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slither/core/declarations/function.py b/slither/core/declarations/function.py index 0b44a9e25..b91e58f24 100644 --- a/slither/core/declarations/function.py +++ b/slither/core/declarations/function.py @@ -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]