Skip to content

Commit

Permalink
fix: renaming inscription id (#1564)
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid authored Jan 11, 2024
1 parent c797ff1 commit 1d4d524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/serializers/udt_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class UdtSerializer
object.omiga_inscription_info.expected_supply.to_s
end

attribute :inscription_id, if: Proc.new { |record, _params|
attribute :inscription_info_id, if: Proc.new { |record, _params|
record.udt_type == "omiga_inscription"
} do |object|
object.omiga_inscription_info.args
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class OmigaInscriptionsControllerTest < ActionDispatch::IntegrationTest
assert_equal %w(
symbol full_name display_name uan total_amount addresses_count
decimal icon_file h24_ckb_transactions_count created_at description
published type_hash type_script issuer_address mint_status mint_limit expected_supply inscription_id
published type_hash type_script issuer_address mint_status mint_limit expected_supply inscription_info_id
).sort,
response_udt["attributes"].keys.sort
end
Expand Down

0 comments on commit 1d4d524

Please sign in to comment.