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
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({
contract: contract,
func: func

Loading…
Cancel
Save