From bd238fbb587aa88216590d1c24f89e0f533f6150 Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Wed, 2 Aug 2023 22:49:51 +0300 Subject: [PATCH] Remove TODO from API v2 response --- CHANGELOG.md | 1 + .../lib/block_scout_web/views/api/v2/block_view.ex | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8699f6026c..5ee1616b32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ ### 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
diff --git a/apps/block_scout_web/lib/block_scout_web/views/api/v2/block_view.ex b/apps/block_scout_web/lib/block_scout_web/views/api/v2/block_view.ex index 9c022d364e..8da05d3b68 100644 --- a/apps/block_scout_web/lib/block_scout_web/views/api/v2/block_view.ex +++ b/apps/block_scout_web/lib/block_scout_web/views/api/v2/block_view.ex @@ -50,9 +50,9 @@ defmodule BlockScoutWeb.API.V2.BlockView do "base_fee_per_gas" => block.base_fee_per_gas, "burnt_fees" => burned_fee, "priority_fee" => priority_fee, - "extra_data" => "TODO", + # "extra_data" => "TODO", "uncles_hashes" => prepare_uncles(block.uncle_relations), - "state_root" => "TODO", + # "state_root" => "TODO", "rewards" => prepare_rewards(block.rewards, block, single_block?), "gas_target_percentage" => gas_target(block), "gas_used_percentage" => gas_used_percentage(block),