From 39500c092e512c14c462b7e541cd887548e7b59e Mon Sep 17 00:00:00 2001 From: rajeevgopalakrishna Date: Thu, 21 Feb 2019 09:55:52 +0530 Subject: [PATCH] Iterate over contracts_derived instead of contracts to prevent duplicate results --- slither/detectors/statements/calls_in_loop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/detectors/statements/calls_in_loop.py b/slither/detectors/statements/calls_in_loop.py index 82d9cdd71..4a15691b1 100644 --- a/slither/detectors/statements/calls_in_loop.py +++ b/slither/detectors/statements/calls_in_loop.py @@ -82,7 +82,7 @@ If one of the destinations has a fallback function which reverts, `bad` will alw """ """ results = [] - for c in self.contracts: + for c in self.slither.contracts_derived: values = self.detect_call_in_loop(c) for node in values: func = node.function