Skip to content

Commit

Permalink
Detect also in modifiers (#2280)
Browse files Browse the repository at this point in the history
  • Loading branch information
smonicas authored Jan 29, 2024
1 parent b83fa21 commit b292175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/detectors/statements/divide_before_multiply.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def detect_divide_before_multiply(
results: List[Tuple[FunctionContract, List[Node]]] = []

# Loop for each function and modifier.
for function in contract.functions_declared:
for function in contract.functions_declared + contract.modifiers_declared:
if not function.entry_point:
continue

Expand Down

0 comments on commit b292175

Please sign in to comment.