From 4100e959a51998950beb00e276d712682bdb7b67 Mon Sep 17 00:00:00 2001 From: Maxim Filonov <53992153+sl1depengwyn@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:23:42 +0300 Subject: [PATCH] chore: invalid association `token_transfers` (#11204) --- apps/explorer/lib/explorer/chain/token_transfer.ex | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/explorer/lib/explorer/chain/token_transfer.ex b/apps/explorer/lib/explorer/chain/token_transfer.ex index e5b5efe51a..74e0287c5c 100644 --- a/apps/explorer/lib/explorer/chain/token_transfer.ex +++ b/apps/explorer/lib/explorer/chain/token_transfer.ex @@ -136,10 +136,10 @@ defmodule Explorer.Chain.TokenTransfer do require Explorer.Chain.TokenTransfer.Schema import Ecto.Changeset - import Explorer.Chain.SmartContract.Proxy.Models.Implementation, only: [proxy_implementations_association: 0] alias Explorer.Chain alias Explorer.Chain.{DenormalizationHelper, Hash, Log, TokenTransfer} + alias Explorer.Chain.SmartContract.Proxy.Models.Implementation alias Explorer.{PagingOptions, Repo} @default_paging_options %PagingOptions{page_size: 50} @@ -240,8 +240,8 @@ defmodule Explorer.Chain.TokenTransfer do DenormalizationHelper.extend_transaction_preload([ :transaction, :token, - [from_address: [:scam_badge, :names, :smart_contract, proxy_implementations_association()]], - [to_address: [:scam_badge, :names, :smart_contract, proxy_implementations_association()]] + [from_address: [:scam_badge, :names, :smart_contract, Implementation.proxy_implementations_association()]], + [to_address: [:scam_badge, :names, :smart_contract, Implementation.proxy_implementations_association()]] ]) only_consensus_transfers_query() @@ -267,8 +267,8 @@ defmodule Explorer.Chain.TokenTransfer do DenormalizationHelper.extend_transaction_preload([ :transaction, :token, - [from_address: [:scam_badge, :names, :smart_contract, proxy_implementations_association()]], - [to_address: [:scam_badge, :names, :smart_contract, proxy_implementations_association()]] + [from_address: [:scam_badge, :names, :smart_contract, Implementation.proxy_implementations_association()]], + [to_address: [:scam_badge, :names, :smart_contract, Implementation.proxy_implementations_association()]] ]) only_consensus_transfers_query() @@ -300,8 +300,8 @@ defmodule Explorer.Chain.TokenTransfer do DenormalizationHelper.extend_transaction_preload([ :transaction, :token, - [from_address: [:scam_badge, :names, :smart_contract, proxy_implementations_association()]], - [to_address: [:scam_badge, :names, :smart_contract, proxy_implementations_association()]] + [from_address: [:scam_badge, :names, :smart_contract, Implementation.proxy_implementations_association()]], + [to_address: [:scam_badge, :names, :smart_contract, Implementation.proxy_implementations_association()]] ]) only_consensus_transfers_query()