1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

trezorctl: fix bug in sign_tx. (#237)

Set address to None, if user didn't specify address.  Otherwise trezorctl
would send an empty string as address instead of not including it.
This commit is contained in:
Jochen Hoenicke 2018-03-16 07:00:00 +01:00 committed by Pavol Rusnak
parent 35aadfd32f
commit 88b789e8ae

View File

@ -521,6 +521,7 @@ def sign_tx(connect, coin):
if address:
address_n = None
else:
address = None
address_n = click.prompt('BIP-32 path (for change output)', type=client.expand_path, default='')
if not address_n:
break