Also search `parent_func.returns` in `find_delegate_from_name`

pull/1757/head
webthethird 2 years ago
parent 9a9acbede9
commit f148bbc0a8
  1. 2
      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

Loading…
Cancel
Save