fix filtering to use string value of enum

pull/2099/head
alpharush 1 year ago
parent 917c5d6cd6
commit 5197b157a8
  1. 2
      slither/detectors/abstract_detector.py

@ -182,7 +182,7 @@ class AbstractDetector(metaclass=abc.ABCMeta):
and self.compilation_unit.solc_version in self.VULNERABLE_SOLC_VERSIONS
)
if self.LANGUAGE:
return self.compilation_unit._language == self.LANGUAGE
return self.compilation_unit._language.value == self.LANGUAGE
return True
@abc.abstractmethod

Loading…
Cancel
Save