From 2ea2f0a3f7a66d43ca2756cb47ef41e62d451217 Mon Sep 17 00:00:00 2001 From: Paladin - Team Account <87263486+JorgeAtPaladin@users.noreply.github.com> Date: Thu, 29 Sep 2022 21:00:35 +0200 Subject: [PATCH] fix: self.is_valid_type requires Co-authored-by: alpharush <0xalpharush@protonmail.com> --- slither/detectors/variables/possible_const_state_variables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/detectors/variables/possible_const_state_variables.py b/slither/detectors/variables/possible_const_state_variables.py index 245f81a91..1d18da5a8 100644 --- a/slither/detectors/variables/possible_const_state_variables.py +++ b/slither/detectors/variables/possible_const_state_variables.py @@ -46,7 +46,7 @@ class ConstCandidateStateVars(AbstractDetector): @staticmethod def _valid_candidate(v): - return _is_valid_type(v) and not (v.is_constant or v.is_immutable) + return self._is_valid_type(v) and not (v.is_constant or v.is_immutable) # https://solidity.readthedocs.io/en/v0.5.2/contracts.html#constant-state-variables valid_solidity_function = [