diff --git a/CHANGELOG.md b/CHANGELOG.md index 4506e0dc75..577bfdc2a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Features +- [#9437](https://github.com/blockscout/blockscout/pull/9437) - Add Enum.uniq before sanitizing token transfers - [#9403](https://github.com/blockscout/blockscout/pull/9403) - Null round handling - [#9401](https://github.com/blockscout/blockscout/pull/9401) - Eliminate incorrect token transfers with empty token_ids - [#9396](https://github.com/blockscout/blockscout/pull/9396) - More-Minimal Proxy support diff --git a/apps/indexer/lib/indexer/transform/token_transfers.ex b/apps/indexer/lib/indexer/transform/token_transfers.ex index 364f4af701..09a4b1fea6 100644 --- a/apps/indexer/lib/indexer/transform/token_transfers.ex +++ b/apps/indexer/lib/indexer/transform/token_transfers.ex @@ -107,6 +107,7 @@ defmodule Indexer.Transform.TokenTransfers do defp sanitize_token_types(tokens, token_transfers) do existing_token_types_map = tokens + |> Enum.uniq() |> Enum.reduce([], fn %{contract_address_hash: address_hash}, acc -> case Repo.get_by(Token, contract_address_hash: address_hash) do %{type: type} -> [{address_hash, type} | acc]