modified func state vars count

pull/60/head
Omidiora Samuel 6 years ago
parent 16d3b2ad1f
commit 26aff39b67
  1. 2
      slither/detectors/functions/complex_function.py

@ -58,7 +58,7 @@ class ComplexFunction(AbstractDetector):
"""Checks the number of the state variables written to isn't """Checks the number of the state variables written to isn't
greater than 20 greater than 20
""" """
if func.state_variables_written.length > Complex.MAX_STATE_VARIABLES.value: if func.variables_written.length > Complex.MAX_STATE_VARIABLES.value:
ret.append({ ret.append({
contract: contract, contract: contract,
func: func func: func

Loading…
Cancel
Save