Merge pull request #8104 from blockscout/vb-remove-todo-from-api-response

Remove TODO from API v2 response
pull/8114/head
Victor Baranov 1 year ago committed by GitHub
commit 533d9a1bb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 4
      apps/block_scout_web/lib/block_scout_web/views/api/v2/block_view.ex

@ -14,6 +14,7 @@
### Chore ### Chore
- [#8104](https://github.com/blockscout/blockscout/pull/8104) - remove "TODO" from API v2 response
- [#8100](https://github.com/blockscout/blockscout/pull/8100), [#8103](https://github.com/blockscout/blockscout/pull/8103) - Extend docker-compose configs with new config when front is running externally - [#8100](https://github.com/blockscout/blockscout/pull/8100), [#8103](https://github.com/blockscout/blockscout/pull/8103) - Extend docker-compose configs with new config when front is running externally
<details> <details>

@ -50,9 +50,9 @@ defmodule BlockScoutWeb.API.V2.BlockView do
"base_fee_per_gas" => block.base_fee_per_gas, "base_fee_per_gas" => block.base_fee_per_gas,
"burnt_fees" => burned_fee, "burnt_fees" => burned_fee,
"priority_fee" => priority_fee, "priority_fee" => priority_fee,
"extra_data" => "TODO", # "extra_data" => "TODO",
"uncles_hashes" => prepare_uncles(block.uncle_relations), "uncles_hashes" => prepare_uncles(block.uncle_relations),
"state_root" => "TODO", # "state_root" => "TODO",
"rewards" => prepare_rewards(block.rewards, block, single_block?), "rewards" => prepare_rewards(block.rewards, block, single_block?),
"gas_target_percentage" => gas_target(block), "gas_target_percentage" => gas_target(block),
"gas_used_percentage" => gas_used_percentage(block), "gas_used_percentage" => gas_used_percentage(block),

Loading…
Cancel
Save