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

feat(python): improve error message when prev_txes are not provided

This commit is contained in:
matejcik 2020-10-08 12:12:33 +02:00 committed by matejcik
parent 2327cab436
commit 8c460dcbf3

View File

@ -199,6 +199,9 @@ def sign_tx(
(`inputs_count`, `outputs_count`, `coin_name`) will be inferred from the arguments
and cannot be overriden by kwargs.
"""
if prev_txes is None:
prev_txes = {}
if details is not None:
warnings.warn(
"'details' argument is deprecated, use kwargs instead",