diff --git a/slitherin/detectors/unprotected_setter.py b/slitherin/detectors/unprotected_setter.py index 75ae427..018c81e 100644 --- a/slitherin/detectors/unprotected_setter.py +++ b/slitherin/detectors/unprotected_setter.py @@ -41,7 +41,11 @@ def is_setter(self, fun, params=None): def has_access_control(self, fun): for m in fun.modifiers: - if m.name in ["initializer", "onlyOwner"] or m.name.startswith("only"): + if m.name in [ + "initializer", + "onlyOwner", + "restricted", + ] or m.name.startswith("only"): return True if fun.visibility in ["internal", "private"]: return True