Skip to content

Commit

Permalink
fix: filter spore cell udt accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitz committed Aug 26, 2023
1 parent 11e08a9 commit 5655c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/serializers/address_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5655c78

Please sign in to comment.