1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-03 03:50:58 +00:00

fix(python): always fill TransactionType.lock_time

This commit is contained in:
matejcik 2020-09-18 15:24:32 +02:00 committed by matejcik
parent 35035dabcb
commit 01b66a5858

View File

@ -50,7 +50,7 @@ def from_json(json_dict):
return messages.TransactionType(
version=json_dict["version"],
lock_time=json_dict.get("locktime"),
lock_time=json_dict.get("locktime", 0),
inputs=[make_input(vin) for vin in json_dict["vin"]],
bin_outputs=[make_bin_output(vout) for vout in json_dict["vout"]],
)