diff --git a/slither/utils/martin.py b/slither/utils/martin.py index 16e3e13e80..7d39b2c14a 100644 --- a/slither/utils/martin.py +++ b/slither/utils/martin.py @@ -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)