mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +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:
parent
35aadfd32f
commit
88b789e8ae
@ -521,6 +521,7 @@ def sign_tx(connect, coin):
|
|||||||
if address:
|
if address:
|
||||||
address_n = None
|
address_n = None
|
||||||
else:
|
else:
|
||||||
|
address = None
|
||||||
address_n = click.prompt('BIP-32 path (for change output)', type=client.expand_path, default='')
|
address_n = click.prompt('BIP-32 path (for change output)', type=client.expand_path, default='')
|
||||||
if not address_n:
|
if not address_n:
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user