Skip to content

Commit

Permalink
Add missing check in private_key_base58check()
Browse files Browse the repository at this point in the history
  • Loading branch information
alecov committed Mar 14, 2022
1 parent 075f739 commit e4ab54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hdwallet/hdwallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ def private_key_base58check(self) -> str:
return base58.b58encode_check(
_unhexlify(self._cryptocurrency.PRIVATE_KEY_ADDRESS) +
unhexlify(self.private_key())
).decode()
).decode() if self.private_key() s not None else None

def base58check_address(self) -> str:
return self.public_key_base58check()
Expand Down

0 comments on commit e4ab54f

Please sign in to comment.