From 7d65d7a636c83810e21b07f7a1f3214d623d0eac Mon Sep 17 00:00:00 2001 From: Rabbit Date: Tue, 6 Feb 2024 15:57:36 +0800 Subject: [PATCH] fix: transaction display cells count (#1621) --- app/serializers/ckb_transactions_serializer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/serializers/ckb_transactions_serializer.rb b/app/serializers/ckb_transactions_serializer.rb index f36570812..2e2ff1495 100644 --- a/app/serializers/ckb_transactions_serializer.rb +++ b/app/serializers/ckb_transactions_serializer.rb @@ -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|