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:
parent
35035dabcb
commit
01b66a5858
@ -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"]],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user