1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

Merge pull request #350 from zulucrypto/stellar-fixExplicitNativeAsset

Stellar: explicitly specifying native asset in payment op causes "firmware error"
This commit is contained in:
Tomas Susanka 2018-09-18 10:59:56 +02:00 committed by GitHub
commit 2a0dc76981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)