Use preload_order for tx actions

pull/6582/head
POA 2 years ago
parent 9aafa5197f
commit 8ece204b2e
  1. 2
      apps/explorer/lib/explorer/chain/transaction.ex

@ -261,7 +261,7 @@ defmodule Explorer.Chain.Transaction do
has_many(:internal_transactions, InternalTransaction, foreign_key: :transaction_hash)
has_many(:logs, Log, foreign_key: :transaction_hash)
has_many(:token_transfers, TokenTransfer, foreign_key: :transaction_hash)
has_many(:transaction_actions, TransactionActions, foreign_key: :hash)
has_many(:transaction_actions, TransactionActions, foreign_key: :hash, preload_order: [asc: :log_index])
belongs_to(
:to_address,

Loading…
Cancel
Save