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

Commit 5b9c10f

Browse files
committed
Fix tx.creates
1 parent 06e3c81 commit 5b9c10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/transactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def log_dict(self):
136136
@property
137137
def creates(self):
138138
"returns the address of a contract created by this tx"
139-
if self.to == '':
139+
if self.to in (b'', '\0'*20):
140140
return mk_contract_address(self.sender, self.nonce)
141141

142142

0 commit comments

Comments
 (0)