chore: invalid association `token_transfers` (#11204)

pull/11069/merge
Maxim Filonov 4 days ago committed by GitHub
parent 50da37f336
commit 4100e959a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 14
      apps/explorer/lib/explorer/chain/token_transfer.ex

@ -136,10 +136,10 @@ defmodule Explorer.Chain.TokenTransfer do
require Explorer.Chain.TokenTransfer.Schema require Explorer.Chain.TokenTransfer.Schema
import Ecto.Changeset import Ecto.Changeset
import Explorer.Chain.SmartContract.Proxy.Models.Implementation, only: [proxy_implementations_association: 0]
alias Explorer.Chain alias Explorer.Chain
alias Explorer.Chain.{DenormalizationHelper, Hash, Log, TokenTransfer} alias Explorer.Chain.{DenormalizationHelper, Hash, Log, TokenTransfer}
alias Explorer.Chain.SmartContract.Proxy.Models.Implementation
alias Explorer.{PagingOptions, Repo} alias Explorer.{PagingOptions, Repo}
@default_paging_options %PagingOptions{page_size: 50} @default_paging_options %PagingOptions{page_size: 50}
@ -240,8 +240,8 @@ defmodule Explorer.Chain.TokenTransfer do
DenormalizationHelper.extend_transaction_preload([ DenormalizationHelper.extend_transaction_preload([
:transaction, :transaction,
:token, :token,
[from_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, proxy_implementations_association()]] [to_address: [:scam_badge, :names, :smart_contract, Implementation.proxy_implementations_association()]]
]) ])
only_consensus_transfers_query() only_consensus_transfers_query()
@ -267,8 +267,8 @@ defmodule Explorer.Chain.TokenTransfer do
DenormalizationHelper.extend_transaction_preload([ DenormalizationHelper.extend_transaction_preload([
:transaction, :transaction,
:token, :token,
[from_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, proxy_implementations_association()]] [to_address: [:scam_badge, :names, :smart_contract, Implementation.proxy_implementations_association()]]
]) ])
only_consensus_transfers_query() only_consensus_transfers_query()
@ -300,8 +300,8 @@ defmodule Explorer.Chain.TokenTransfer do
DenormalizationHelper.extend_transaction_preload([ DenormalizationHelper.extend_transaction_preload([
:transaction, :transaction,
:token, :token,
[from_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, proxy_implementations_association()]] [to_address: [:scam_badge, :names, :smart_contract, Implementation.proxy_implementations_association()]]
]) ])
only_consensus_transfers_query() only_consensus_transfers_query()

Loading…
Cancel
Save