fix: self.is_valid_type requires

Co-authored-by: alpharush <0xalpharush@protonmail.com>
pull/1375/head
Paladin - Team Account 2 years ago committed by GitHub
parent efe103c79c
commit 2ea2f0a3f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      slither/detectors/variables/possible_const_state_variables.py

@ -46,7 +46,7 @@ class ConstCandidateStateVars(AbstractDetector):
@staticmethod @staticmethod
def _valid_candidate(v): 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 # https://solidity.readthedocs.io/en/v0.5.2/contracts.html#constant-state-variables
valid_solidity_function = [ valid_solidity_function = [

Loading…
Cancel
Save