Skip to content

Commit

Permalink
feat: add hash_type to contract_resource_distributed api (#1680)
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid authored Mar 15, 2024
1 parent 05fb19b commit b8a03b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/api/v2/statistics_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ def contract_resource_distributed
{
name: contract.name,
code_hash: contract.code_hash,
hash_type: contract.hash_type,
tx_count: contract.ckb_transactions_count,
capacity_amount: contract.total_referring_cells_capacity,
capacity_amount: (contract.total_referring_cells_capacity / 10**8).truncate(8),
address_count: contract.addresses_count,
}
end
Expand Down

0 comments on commit b8a03b0

Please sign in to comment.