Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 5fdf6fa

Browse files
committed
Python 3 support WIP
1 parent 8fc41db commit 5fdf6fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

btchip/btchip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def startUntrustedTransaction(self, newTransaction, inputIndex, outputList, rede
222222
currentIndex = 0
223223
for passedOutput in outputList:
224224
if ('sequence' in passedOutput) and passedOutput['sequence']:
225-
sequence = bytearray(passedOutput['sequence'].decode('hex'))
225+
sequence = bytearray(unhexlify(passedOutput['sequence']))
226226
else:
227227
sequence = bytearray([0xFF, 0xFF, 0xFF, 0xFF]) # default sequence
228228
apdu = [ self.BTCHIP_CLA, self.BTCHIP_INS_HASH_INPUT_START, 0x80, 0x00 ]

0 commit comments

Comments
 (0)