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

trezorctl: Change InputScriptType to OutputScriptType

This commit is contained in:
Saleem Rashid 2017-12-19 14:37:10 +00:00 committed by Pavol Rusnak
parent fcad6d0e28
commit 36c479c2c2

View File

@ -411,9 +411,9 @@ def get_address(connect, coin, address, script_type, show_display):
client = connect()
address_n = client.expand_path(address)
typemap = {
'address': proto.OutputScriptType.SPENDADDRESS,
'segwit': proto.OutputScriptType.SPENDWITNESS,
'p2shsegwit': proto.OutputScriptType.SPENDP2SHWITNESS,
'address': proto.InputScriptType.SPENDADDRESS,
'segwit': proto.InputScriptType.SPENDWITNESS,
'p2shsegwit': proto.InputScriptType.SPENDP2SHWITNESS,
}
script_type = typemap[script_type]
return client.get_address(coin, address_n, show_display, script_type=script_type)