Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smonicas authored and 0xPhaze committed Oct 2, 2023
1 parent 4ace775 commit 77c67a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion slither/printers/inheritance/inheritance_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def _summary(self, contract):
"""
ret = ""

inheritance = [i for i in contract.immediate_inheritance if "mock" not in i.name.lower() and (self.slither.exclude_interfaces and not i.is_interface)]
# Remove contracts that have "mock" in the name and if --exclude-interface removes inherited interfaces
inheritance = [i for i in contract.immediate_inheritance if "mock" not in i.name.lower() and (not self.slither.exclude_interfaces or self.slither.exclude_interfaces and not i.is_interface)]

# Add arrows (number them if there is more than one path so we know order of declaration for inheritance).
if len(inheritance) == 1:
Expand Down

0 comments on commit 77c67a0

Please sign in to comment.