Update slither/detectors/statements/unprotected_upgradeable.py

Co-authored-by: alpharush <0xalpharush@protonmail.com>
pull/1344/head
plotchy 2 years ago committed by GitHub
parent 1bec56f64e
commit 8d8eb9d685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      slither/detectors/statements/unprotected_upgradeable.py

@ -29,9 +29,7 @@ def _has_initializing_protection(functions: List[Function]) -> bool:
for m in f.modifiers:
if m.name == "initializer":
return True
# filtering out SolidityFunction from the internal calls as we don't need to match against those names
internal_func_calls = [c for c in f.all_internal_calls() if not isinstance(c, SolidityFunction)]
for ifc in internal_func_calls:
for ifc in f.all_internal_calls() :
if ifc.name == "_disableInitializers":
return True

Loading…
Cancel
Save