From 26aff39b67a0a5167d5365c96db1aa36c17cc5cb Mon Sep 17 00:00:00 2001 From: Omidiora Samuel <8148384+samparsky@users.noreply.github.com> Date: Wed, 24 Oct 2018 10:08:14 +0100 Subject: [PATCH] modified func state vars count --- slither/detectors/functions/complex_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/detectors/functions/complex_function.py b/slither/detectors/functions/complex_function.py index cdfa50a50..2bb960ab6 100644 --- a/slither/detectors/functions/complex_function.py +++ b/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