From 29f96d9d098601f06cb92fbfac83ff636896a974 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Mon, 4 Mar 2019 14:32:25 +0300 Subject: [PATCH] select only distinct failed transactions --- apps/indexer/lib/indexer/temporary/failed_created_addresses.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/indexer/lib/indexer/temporary/failed_created_addresses.ex b/apps/indexer/lib/indexer/temporary/failed_created_addresses.ex index af5c72028b..0ad778a86f 100644 --- a/apps/indexer/lib/indexer/temporary/failed_created_addresses.ex +++ b/apps/indexer/lib/indexer/temporary/failed_created_addresses.ex @@ -49,7 +49,8 @@ defmodule Indexer.Temporary.FailedCreatedAddresses do from(t in Transaction, left_join: it in InternalTransaction, on: it.transaction_hash == t.hash, - where: t.status == ^0 and not is_nil(it.created_contract_address_hash) + where: t.status == ^0 and not is_nil(it.created_contract_address_hash), + distinct: t.hash ) found_transactions = Repo.all(query, timeout: @query_timeout)