diff --git a/slither/slithir/variables/constant.py b/slither/slithir/variables/constant.py index 96a2864e9..09a5ee34f 100644 --- a/slither/slithir/variables/constant.py +++ b/slither/slithir/variables/constant.py @@ -75,3 +75,6 @@ class Constant(SlithIRVariable): def __repr__(self): return f"{str(self.value)}" + + def __hash__(self) -> int: + return self._val.__hash__()