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

Commit 2d2787a

Browse files
authored
Merge pull request #29 from brandoncurtis/patch-1
fix python `if` syntax in `format_transaction`
2 parents c2bb216 + d7ab937 commit 2d2787a

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)