Skip to content

Commit 692682e

Browse files
FIX. correctly converting bytearray into hex decoded string value
1 parent 5ecc142 commit 692682e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycardano/crypto/bip32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def from_mnemonic(cls, mnemonic: str, passphrase: str = "") -> HDWallet:
171171
return cls.from_seed(
172172
seed=hexlify(seed).decode(),
173173
mnemonic=mnemonic,
174-
entropy=unhexlify(entropy).decode("utf-8"),
174+
entropy=hexlify(entropy).decode("utf-8"),
175175
passphrase=passphrase,
176176
)
177177

0 commit comments

Comments
 (0)