Fix bug in contract.contracts_derived

pull/14/head
Josselin 6 years ago
parent b7078b7586
commit cfb94e05b6
  1. 2
      slither/core/slitherCore.py

@ -26,7 +26,7 @@ class Slither:
def contracts_derived(self):
"""list(Contract): List of contracts that are derived and not inherited."""
inheritances = (x.inheritances for x in self.contracts)
inheritances = (item for sublist in inheritances for item in sublist)
inheritances = [item for sublist in inheritances for item in sublist]
return [c for c in self._contracts.values() if c not in inheritances]
def contracts_as_dict(self):

Loading…
Cancel
Save