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

Commit d7ab937

Browse files
fix python if syntax in format_transaction
This fixes `format_transaction`. Prior to this fix, every call to `format_transaction` fails with ```python TypeError: object of type 'bool' has no len() ```
1 parent 89eff86 commit d7ab937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

btchip/btchipUtils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def format_transaction(dongleOutputData, trustedInputsAndInputScripts, version=0
4343
newInput = bitcoinInput()
4444
newInput.prevOut = item[0][4:4+36]
4545
newInput.script = item[1]
46-
if len(item > 2):
46+
if len(item) > 2:
4747
newInput.sequence = bytearray(item[2].decode('hex'))
4848
else:
4949
newInput.sequence = bytearray([0xff, 0xff, 0xff, 0xff])

0 commit comments

Comments
 (0)