Skip to content

Commit

Permalink
Improve output generation
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul committed Apr 16, 2024
1 parent b0d525b commit 6c31020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slither/printers/summary/external_calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ def output(self, _):
for target_contract, target_function in node.high_level_calls:

row = [
f"{contract.name}.{function.name} {node.source_mapping.lines}",
f"{function.canonical_name} {node.source_mapping.to_detailed_str()}",
f"{target_contract.name}.{target_function}",
]

if function.all_reachable_from_functions:

for source in function.all_reachable_from_functions:
chain = f"{source.contract.name}.{source.name} -> {contract.name}.{function.name}"
chain = f"{source.canonical_name} -> {function.canonical_name}"
table.add_row(
[
*row,
Expand Down

0 comments on commit 6c31020

Please sign in to comment.