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

fix(python/stellar): use boolean value for is_authorized

[no changelog]
This commit is contained in:
matejcik 2021-09-08 11:18:35 +02:00 committed by matejcik
parent 399ee51be6
commit e2ec761898

View File

@ -207,7 +207,7 @@ def _read_operation(op: "Operation"):
trusted_account=op.trustor, trusted_account=op.trustor,
asset_type=asset_type, asset_type=asset_type,
asset_code=op.asset_code, asset_code=op.asset_code,
is_authorized=op.authorize.value, is_authorized=bool(op.authorize.value),
) )
if isinstance(op, AccountMerge): if isinstance(op, AccountMerge):
return messages.StellarAccountMergeOp( return messages.StellarAccountMergeOp(