Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 7fc4a84

Browse files
committed
Fix transactions.py py3 incompatibility
1 parent a8545a2 commit 7fc4a84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ethereum/transactions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ def creates(self):
155155
def __eq__(self, other):
156156
return isinstance(other, self.__class__) and self.hash == other.hash
157157

158+
def __lt__(self, other):
159+
return isinstance(other, self.__class__) and self.hash < other.hash
160+
158161
def __hash__(self):
159162
return utils.big_endian_to_int(self.hash)
160163

0 commit comments

Comments
 (0)