From 5655c78623678a6ef40ad71780ac498324ce4da7 Mon Sep 17 00:00:00 2001 From: zhangnan Date: Sat, 26 Aug 2023 12:31:39 +0800 Subject: [PATCH] fix: filter spore cell udt accounts --- app/serializers/address_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/address_serializer.rb b/app/serializers/address_serializer.rb index 2d9b04017..bd5155e03 100644 --- a/app/serializers/address_serializer.rb +++ b/app/serializers/address_serializer.rb @@ -87,8 +87,8 @@ class AddressSerializer } elsif udt_account.udt_type == "spore_cell" ts = TypeScript.where(script_hash: udt_account.type_hash).first - data = ts.cell_outputs.order("id desc").first.data if ts + data = ts.cell_outputs.order("id desc").first.data i = TokenItem.includes(collection: :type_script).find_by type_script_id: ts.id coll = i&.collection end