Skip to content

Commit

Permalink
fix: transaction display cells count (#1621)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitz authored Feb 6, 2024
1 parent 0506bb4 commit 7d65d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/serializers/ckb_transactions_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class CkbTransactionsSerializer
end

attribute :display_inputs_count do |object|
object.display_inputs.count
object.is_cellbase ? 1 : object.cell_inputs.count
end

attribute :display_outputs_count do |object|
object.display_outputs.count
object.outputs.count
end

attribute :display_inputs do |object, params|
Expand Down

0 comments on commit 7d65d7a

Please sign in to comment.