Skip to content

Commit e4ab54f

Browse files
committed
Add missing check in private_key_base58check()
1 parent 075f739 commit e4ab54f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hdwallet/hdwallet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ def private_key_base58check(self) -> str:
879879
return base58.b58encode_check(
880880
_unhexlify(self._cryptocurrency.PRIVATE_KEY_ADDRESS) +
881881
unhexlify(self.private_key())
882-
).decode()
882+
).decode() if self.private_key() s not None else None
883883

884884
def base58check_address(self) -> str:
885885
return self.public_key_base58check()

0 commit comments

Comments
 (0)