LedgerHQ / btchip-python

Ledger HW.1 Python API
http://www.ledger.co
Apache License 2.0
65 stars 51 forks source link

fix python `if` syntax in `format_transaction` #29

Closed brandoncurtis closed 6 years ago

brandoncurtis commented 7 years ago

This fixes format_transaction.

Prior to this fix, every call to format_transaction fails with

TypeError: object of type 'bool' has no len()

Fixes Electrum-LTC support for Ledger Nano S.