Skip to content

Commit

Permalink
proper error message for bad checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
scgbckbone committed May 20, 2024
1 parent 7f2e278 commit c8e85f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cktap/base58.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def decode_base58_checksum(s: str) -> bytes:
checksum = num_bytes[-4:]
if hash256(num_bytes[:-4])[:4] != checksum:
raise ValueError(
'bad address: {} {}'.format(
'bad checksum: {} {}'.format(
checksum,
hash256(num_bytes[:-4])[:4]
)
Expand Down

0 comments on commit c8e85f4

Please sign in to comment.