diff --git a/slither/printers/inheritance/inheritance_graph.py b/slither/printers/inheritance/inheritance_graph.py index 8575407d41..396680bb6e 100644 --- a/slither/printers/inheritance/inheritance_graph.py +++ b/slither/printers/inheritance/inheritance_graph.py @@ -189,9 +189,8 @@ def output(self, filename): Args: filename(string) """ - - if filename == "": - filename = "contracts.dot" + if filename == "" or filename == ".": + filename = "inheritance-graph.dot" if not filename.endswith(".dot"): filename += ".inheritance-graph.dot" info = "Inheritance Graph: " + filename + "\n"