Skip to content

Commit

Permalink
Check the folded length in __eq__
Browse files Browse the repository at this point in the history
  • Loading branch information
smonicas committed Feb 21, 2024
1 parent a844f2d commit b106acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/core/solidity_types/array_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __str__(self) -> str:
def __eq__(self, other: Any) -> bool:
if not isinstance(other, ArrayType):
return False
return self._type == other.type and self.length == other.length
return self._type == other.type and self._length_value == other.length_value

def __hash__(self) -> int:
return hash(str(self))

0 comments on commit b106acf

Please sign in to comment.