Skip to content

Commit

Permalink
Merge branch 'martin-printer' into ck-printer
Browse files Browse the repository at this point in the history
  • Loading branch information
devtooligan committed Jul 7, 2023
2 parents 5c6cfb8 + 6843d03 commit 8a34cd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions slither/utils/martin.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,12 @@ def update_coupling(self) -> Dict:
new_external_call = high_level_call.destination.type
elif not hasattr(high_level_call.destination.type, "type"):
continue
if isinstance(high_level_call.destination.type.type, Contract):
elif isinstance(high_level_call.destination.type.type, Contract):
new_external_call = high_level_call.destination.type.type.name
if isinstance(high_level_call.destination.type.type, str):
elif isinstance(high_level_call.destination.type.type, str):
new_external_call = high_level_call.destination.type.type
else:
continue
new_external_calls.append(new_external_call)
external_calls.extend(new_external_calls)
dependencies[contract.name] = set(external_calls)
Expand Down

0 comments on commit 8a34cd4

Please sign in to comment.