From b469b05d84ccf9c9ea9679852f7612f51cf8f6b7 Mon Sep 17 00:00:00 2001 From: Josselin Date: Wed, 9 Jan 2019 11:53:26 +0000 Subject: [PATCH] Improve all_functions_called --- slither/core/declarations/contract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/core/declarations/contract.py b/slither/core/declarations/contract.py index 70f66e1c43..02659b6430 100644 --- a/slither/core/declarations/contract.py +++ b/slither/core/declarations/contract.py @@ -191,7 +191,7 @@ def all_functions_called(self): ''' list(Function): List of functions reachable from the contract (include super) ''' - all_calls = [f.all_internal_calls() for f in self.functions + self.modifiers] + all_calls = [f.all_internal_calls() for f in self.functions + self.modifiers] + [self.functions + self.modifiers] all_calls = [item for sublist in all_calls for item in sublist] + self.functions all_calls = list(set(all_calls))