diff --git a/apps/block_scout_web/lib/block_scout_web/microservice_interfaces/transaction_interpretation.ex b/apps/block_scout_web/lib/block_scout_web/microservice_interfaces/transaction_interpretation.ex index 263559cb23..0fbedf613a 100644 --- a/apps/block_scout_web/lib/block_scout_web/microservice_interfaces/transaction_interpretation.ex +++ b/apps/block_scout_web/lib/block_scout_web/microservice_interfaces/transaction_interpretation.ex @@ -160,6 +160,8 @@ defmodule BlockScoutWeb.MicroserviceInterfaces.TransactionInterpretation do value: transaction_with_meta.value, method: Transaction.method_name(transaction_with_meta, Transaction.format_decoded_input(decoded_input)), status: transaction_with_meta.status, + # todo: keep `tx_types` for compatibility with interpreter and remove when new interpreter is bound to `transaction_types` property + tx_types: TransactionView.transaction_types(transaction_with_meta), transaction_types: TransactionView.transaction_types(transaction_with_meta), raw_input: transaction_with_meta.input, decoded_input: decoded_input_data, diff --git a/apps/block_scout_web/lib/block_scout_web/views/api/v2/address_view.ex b/apps/block_scout_web/lib/block_scout_web/views/api/v2/address_view.ex index 9b19c5103e..90611f3b5e 100644 --- a/apps/block_scout_web/lib/block_scout_web/views/api/v2/address_view.ex +++ b/apps/block_scout_web/lib/block_scout_web/views/api/v2/address_view.ex @@ -81,6 +81,8 @@ defmodule BlockScoutWeb.API.V2.AddressView do def prepare_address({address, transaction_count}) do nil |> Helper.address_with_info(address, address.hash, true) + # todo: keep `tx_count` for compatibility with frontend and remove when new frontend is bound to `transaction_count` property + |> Map.put(:tx_count, to_string(transaction_count)) |> Map.put(:transaction_count, to_string(transaction_count)) |> Map.put(:coin_balance, if(address.fetched_coin_balance, do: address.fetched_coin_balance.value)) end