From 99767a1bb46e59c86f6b69933b56a251e6a89004 Mon Sep 17 00:00:00 2001 From: Josselin Date: Mon, 19 Nov 2018 14:29:41 +0000 Subject: [PATCH] Improve unused return value --- slither/detectors/operations/unused_return_values.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slither/detectors/operations/unused_return_values.py b/slither/detectors/operations/unused_return_values.py index 2410622b8c..06b09ee389 100644 --- a/slither/detectors/operations/unused_return_values.py +++ b/slither/detectors/operations/unused_return_values.py @@ -48,6 +48,8 @@ def detect(self): results = [] for c in self.slither.contracts: for f in c.functions + c.modifiers: + if f.contract != c: + continue unused_return = self.detect_unused_return_values(f) if unused_return: info = "{}.{} ({}) does not use the value returned by external calls:\n"