We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 049a96d commit 9a830c3Copy full SHA for 9a830c3
crytic_compile/crytic_compile.py
@@ -658,11 +658,12 @@ def _apply_autolink(self) -> None:
658
659
for contract_name in source_unit.contracts_names:
660
deps = source_unit.libraries_names(contract_name)
661
-
662
- if deps or contract_name in all_target_contracts:
+ if deps:
663
all_dependencies[contract_name] = deps
664
all_libraries_needed.update(deps)
665
+ all_target_contracts = [c for c in all_target_contracts if c not in all_libraries_needed]
666
+
667
# Calculate deployment order globally
668
deployment_order, _ = get_deployment_order(all_dependencies, all_target_contracts)
669
self._autolink_deployment_order = deployment_order
0 commit comments