Skip to content

Commit

Permalink
Remove unneeded conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes committed Sep 9, 2020
1 parent 44751a0 commit a77cb01
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions web3/_utils/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,6 @@ def validate_address(value: Any) -> None:
if not is_valid_domain(value):
raise InvalidAddress("Address needs to be a full domain name including a TLD", value)
return
# # buildTransaction fills in the 'to' field with an empty
# # bytestring if no address is provided.
# if value == b'':
# return
if is_bytes(value):
if not is_binary_address(value):
raise InvalidAddress("Address must be 20 bytes when input type is bytes", value)
Expand Down

0 comments on commit a77cb01

Please sign in to comment.