Skip to content

Commit

Permalink
Improve all_functions_called
Browse files Browse the repository at this point in the history
  • Loading branch information
montyly committed Jan 9, 2019
1 parent 60ab8eb commit b469b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/core/declarations/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit b469b05

Please sign in to comment.