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

stellar - do not attempt to serialize asset code or issuer when type is native

This commit is contained in:
ZuluCrypto 2018-09-10 19:44:43 -06:00
parent 02c5f14728
commit 00692d8156
No known key found for this signature in database
GPG Key ID: 0D1266F87C28A2E1

View File

@ -158,7 +158,7 @@ def _write_asset_code(w, asset_type: int, asset_code: str):
def _write_asset(w, asset: StellarAssetType):
if asset is None:
if asset is None or asset.type == consts.ASSET_TYPE_NATIVE:
writers.write_uint32(w, 0)
return
writers.write_uint32(w, asset.type)