trezorctl: Ask for input script type in sign_tx

This commit is contained in:
Saleem Rashid 2017-12-20 14:40:16 +00:00 committed by Pavol Rusnak
parent 35db3c5efb
commit 881015ae5f
1 changed files with 2 additions and 0 deletions

View File

@ -488,11 +488,13 @@ def sign_tx(connect, coin):
prev_hash, prev_index = prev
address_n = click.prompt('BIP-32 path to derive the key', type=client.expand_path)
amount = click.prompt('Input amount (satoshis)', type=int, default=0)
script_type = click.prompt('Input type', type=CHOICE_INPUT_SCRIPT_TYPE, default='address')
inputs.append(proto.TxInputType(
address_n=address_n,
prev_hash=prev_hash,
prev_index=prev_index,
amount=amount,
script_type=script_type,
))
outputs = []