Fix contract.all_functions_called

pull/213/head
Josselin 6 years ago
parent 654c2c98b7
commit 92ced37b30
  1. 5
      slither/core/declarations/contract.py

@ -520,8 +520,9 @@ class Contract(ChildSlither, SourceMapping):
''' '''
list(Function): List of functions reachable from the contract (include super) list(Function): List of functions reachable from the contract (include super)
''' '''
all_calls = [f.all_internal_calls() for f in self.functions + self.modifiers] + [self.functions + self.modifiers] all_calls = [f for f in self.functions + self.modifiers if not f.is_shadowed]
all_calls = [item for sublist in all_calls for item in sublist] + self.functions all_calls = [f.all_internal_calls() for f in all_calls] + [all_calls]
all_calls = [item for sublist in all_calls for item in sublist]
all_calls = list(set(all_calls)) all_calls = list(set(all_calls))
all_constructors = [c.constructor for c in self.inheritance] all_constructors = [c.constructor for c in self.inheritance]

Loading…
Cancel
Save