diff --git a/counterparty-core/counterpartycore/lib/ledger.py b/counterparty-core/counterpartycore/lib/ledger.py index b097583fd..345c24ccf 100644 --- a/counterparty-core/counterpartycore/lib/ledger.py +++ b/counterparty-core/counterpartycore/lib/ledger.py @@ -904,7 +904,7 @@ def get_assets_last_issuance(state_db, asset_list): }, } for asset_info in assets_info: - if asset_info["asset_longname"] in asset_list: + if asset_info["asset_longname"] and asset_info["asset_longname"] in asset_list: result[asset_info["asset_longname"]] = asset_info result[asset_info["asset"]] = asset_info else: diff --git a/counterparty-core/counterpartycore/test/fixtures/api_v2_fixtures.json b/counterparty-core/counterpartycore/test/fixtures/api_v2_fixtures.json index 78bbb4129..3f42e70dc 100644 --- a/counterparty-core/counterpartycore/test/fixtures/api_v2_fixtures.json +++ b/counterparty-core/counterpartycore/test/fixtures/api_v2_fixtures.json @@ -6534,7 +6534,6 @@ "fee_required": 900000, "status": "open", "give_asset_info": { - "asset": "XCP", "asset_longname": null, "description": "The Counterparty protocol native currency", "issuer": null,