diff --git a/examples/printers/inheritances_graph.sol.dot b/examples/printers/inheritances_graph.sol.dot index a84a3f4a23..928841e7e4 100644 --- a/examples/printers/inheritances_graph.sol.dot +++ b/examples/printers/inheritances_graph.sol.dot @@ -3,5 +3,5 @@ A[shape="box"label=< B[shape="box"label=<
A
B
Public Functions:
g()
>]; C -> A [ label="1" ]; C -> B [ label="2" ]; -C[shape="box"label=<
C
Public Functions:
f()

'g' collides in inherited contracts A, B where B wins.
>]; +C[shape="box"label=<
C
Public Functions:
f()

'g()' collides in inherited contracts A, B where B is chosen.
>]; } \ No newline at end of file diff --git a/examples/printers/inheritances_graph.sol.png b/examples/printers/inheritances_graph.sol.png index 7557b21cca..c583fd5bbf 100644 Binary files a/examples/printers/inheritances_graph.sol.png and b/examples/printers/inheritances_graph.sol.png differ diff --git a/slither/printers/inheritance/inheritance_graph.py b/slither/printers/inheritance/inheritance_graph.py index c00c5540ef..9897db4b20 100644 --- a/slither/printers/inheritance/inheritance_graph.py +++ b/slither/printers/inheritance/inheritance_graph.py @@ -94,7 +94,7 @@ def _get_indirect_shadowing_information(contract): winner = collision_set[-1][1].contract.name collision_steps = [colliding_function.contract.name for _, colliding_function in collision_set] collision_steps = ', '.join(collision_steps) - result.append(f"'{collision_set[0][1].name}' collides in inherited contracts {collision_steps} where {winner} wins.") + result.append(f"'{collision_set[0][1].full_name}' collides in inherited contracts {collision_steps} where {winner} is chosen.") return '\n'.join(result) def _get_port_id(self, var, contract):