Detect also in modifiers (#2280)

pull/2285/head
Simone 10 months ago committed by GitHub
parent b83fa21b3e
commit b292175837
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      slither/detectors/statements/divide_before_multiply.py

@ -133,7 +133,7 @@ def detect_divide_before_multiply(
results: List[Tuple[FunctionContract, List[Node]]] = [] results: List[Tuple[FunctionContract, List[Node]]] = []
# Loop for each function and modifier. # 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: if not function.entry_point:
continue continue

Loading…
Cancel
Save