diff --git a/app/models/concerns/cell_outputs/extra_info.rb b/app/models/concerns/cell_outputs/extra_info.rb index ac420d7ae..fc8c792e9 100644 --- a/app/models/concerns/cell_outputs/extra_info.rb +++ b/app/models/concerns/cell_outputs/extra_info.rb @@ -5,7 +5,7 @@ module ExtraInfo extend ActiveSupport::Concern included do def udt_info - return unless udt? + return unless cell_type.in?(%w(udt xudt)) udt_info = Udt.find_by(type_hash:, published: true) CkbUtils.hash_value_to_s( diff --git a/app/serializers/cell_output_serializer.rb b/app/serializers/cell_output_serializer.rb index e0a2ade05..483c82fdb 100644 --- a/app/serializers/cell_output_serializer.rb +++ b/app/serializers/cell_output_serializer.rb @@ -33,6 +33,8 @@ class CellOutputSerializer { type: "ckb", capacity: object.capacity.to_s } when "udt" object.udt_info.merge!(type: "udt") + when "xudt" + object.udt_info.merge!(type: "xudt") when "cota_registry" object.cota_registry_info.merge!(type: "cota") when "cota_regular"