Skip to content

Commit

Permalink
Solve prospector warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ebellocchia committed Feb 13, 2024
1 parent ec68738 commit 6e55c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bip_utils/utils/mnemonic/mnemonic_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def WordsToBytesChunk(word1: str,

if IntegerUtils.GetBytesNumber(int_chunk) > 3:
return IntegerUtils.ToBytes(int_chunk, endianness=endianness)
else:
return IntegerUtils.ToBytes(int_chunk, bytes_num=4, endianness=endianness)
# The chunk shall be at least 4-byte long
return IntegerUtils.ToBytes(int_chunk, bytes_num=4, endianness=endianness)


class MnemonicWordsList:
Expand Down

0 comments on commit 6e55c4f

Please sign in to comment.