diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e97a28ca9..1666ea89a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,7 @@ - [#3424](https://github.com/poanetwork/blockscout/pull/3424) - Fix display of long NFT IDs - [#3422](https://github.com/poanetwork/blockscout/pull/3422) - Fix contract reader: tuple type - [#3408](https://github.com/poanetwork/blockscout/pull/3408) - Fix (total) difficulty display -- [#3401](https://github.com/poanetwork/blockscout/pull/3401) - Fix procedure of marking internal transactions as failed +- [#3401](https://github.com/poanetwork/blockscout/pull/3401), [#3432](https://github.com/poanetwork/blockscout/pull/3432) - Fix procedure of marking internal transactions as failed - [#3400](https://github.com/poanetwork/blockscout/pull/3400) - Add :last_block_number realtime chain event - [#3399](https://github.com/poanetwork/blockscout/pull/3399) - Fix Token transfers CSV export - [#3396](https://github.com/poanetwork/blockscout/pull/3396) - Handle exchange rates request throttled diff --git a/apps/indexer/lib/indexer/fetcher/internal_transaction.ex b/apps/indexer/lib/indexer/fetcher/internal_transaction.ex index a71b170adb..a2be833459 100644 --- a/apps/indexer/lib/indexer/fetcher/internal_transaction.ex +++ b/apps/indexer/lib/indexer/fetcher/internal_transaction.ex @@ -241,11 +241,13 @@ defmodule Indexer.Fetcher.InternalTransaction do internal_transactions_params |> Enum.map(fn internal_transaction_param -> transaction_index = internal_transaction_param[:transaction_index] + block_number = internal_transaction_param[:block_number] failed_parent = internal_transactions_params |> Enum.filter(fn internal_transactions_param -> - internal_transactions_param[:transaction_index] == transaction_index && + internal_transactions_param[:block_number] == block_number && + internal_transactions_param[:transaction_index] == transaction_index && internal_transactions_param[:trace_address] == [] && !is_nil(internal_transactions_param[:error]) end) |> Enum.at(0)