Skip to content

Commit 8f17100

Browse files
committed
Fix: serialize version int type
1 parent 7900c6b commit 8f17100

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hdwallet/keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
# Copyright © 2020-2024, Meheret Tesfaye Batu <[email protected]>
3+
# Copyright © 2020-2025, Meheret Tesfaye Batu <[email protected]>
44
# Distributed under the MIT software license, see the accompanying
55
# file COPYING or https://opensource.org/license/mit
66

@@ -30,7 +30,7 @@ def serialize(
3030
) -> Optional[str]:
3131
try:
3232
raw: bytes = (
33-
integer_to_bytes(version) if isinstance(version, int) else get_bytes(version) +
33+
(integer_to_bytes(version) if isinstance(version, int) else get_bytes(version)) +
3434
bytes(bytearray([depth])) +
3535
get_bytes(parent_fingerprint) +
3636
struct.pack(">L", index) +

0 commit comments

Comments
 (0)