1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

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

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 = []