Merge pull request #1347 from crytic/0xalpharush-patch-1

implement hash for constants
pull/1360/head
Feist Josselin 2 years ago committed by GitHub
commit 243c6da594
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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__()

Loading…
Cancel
Save