Skip to content

Commit

Permalink
Merge pull request #1741 from nervosnetwork/develop
Browse files Browse the repository at this point in the history
Deploy to testnet
  • Loading branch information
rabbitz committed Apr 3, 2024
2 parents da982dd + 4fde955 commit 52ad588
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/cell_outputs/extra_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions app/serializers/cell_output_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 52ad588

Please sign in to comment.