Iterate over contracts_derived instead of contracts to prevent duplicate results

pull/174/head
rajeevgopalakrishna 6 years ago
parent fe997e7030
commit 39500c092e
  1. 2
      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

Loading…
Cancel
Save