From f148bbc0a89a7221a7950ea4d7aab2fa5abc91f9 Mon Sep 17 00:00:00 2001 From: webthethird Date: Fri, 17 Mar 2023 10:17:51 -0500 Subject: [PATCH] Also search `parent_func.returns` in `find_delegate_from_name` --- slither/utils/upgradeability.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/utils/upgradeability.py b/slither/utils/upgradeability.py index abaac0c10..ead803968 100644 --- a/slither/utils/upgradeability.py +++ b/slither/utils/upgradeability.py @@ -480,7 +480,7 @@ def find_delegate_from_name( for lv in parent_func.local_variables: if lv.name == dest: return lv - for pv in parent_func.parameters: + for pv in parent_func.parameters + parent_func.returns: if pv.name == dest: return pv return None