We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9f8899 commit 17cd9bcCopy full SHA for 17cd9bc
slither/tools/upgradeability/checks/initialization.py
@@ -14,14 +14,19 @@
14
class MultipleInitTarget(Exception):
15
pass
16
17
+
18
def _has_initiliaze_modifier(function: Function):
19
if not function.modifiers:
20
return False
21
return any((m.name == "initializer") for m in function.modifiers)
22
23
24
def _get_initialize_functions(contract):
- return [f for f in contract.functions if (f.name == "initialize" or _has_initiliaze_modifier(f)) and f.is_implemented]
25
+ return [
26
+ f
27
+ for f in contract.functions
28
+ if (f.name == "initialize" or _has_initiliaze_modifier(f)) and f.is_implemented
29
+ ]
30
31
32
def _get_all_internal_calls(function):
0 commit comments