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

tests/sign_tx: Don't expect signatures to be returned for external inputs.

This commit is contained in:
Andrew Kozlik 2020-05-26 00:24:41 +02:00 committed by Andrew Kozlik
parent 712ec68c1b
commit 6c523d09e0

View File

@ -135,7 +135,10 @@ def sign_tx(client, coin_name, inputs, outputs, details=None, prev_txes=None):
res = client.call(signtx)
# Prepare structure for signatures
signatures = [None] * len(inputs)
signatures = [
None if i.script_type != messages.InputScriptType.EXTERNAL else ""
for i in inputs
]
serialized_tx = b""
def copy_tx_meta(tx):