chore: invalid association `token_transfers` (#11204)

master
Maxim Filonov 23 hours 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
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()

Loading…
Cancel
Save