Skip to content

Commit a3dbf48

Browse files
authored
fix: mypy tox issue. (#746)
1 parent 742e21c commit a3dbf48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ethereum_test_types/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,8 @@ def created_contract(self) -> Address:
10551055
nonce_bytes = (
10561056
bytes() if self.nonce == 0 else self.nonce.to_bytes(length=1, byteorder="big")
10571057
)
1058+
if self.sender is None:
1059+
raise ValueError("sender address is None")
10581060
hash = keccak256(eth_rlp.encode([self.sender, nonce_bytes]))
10591061
return Address(hash[-20:])
10601062

0 commit comments

Comments
 (0)