From 8ece204b2e28a13a7dc621eb62bc466d60fa0468 Mon Sep 17 00:00:00 2001 From: POA <33550681+poa@users.noreply.github.com> Date: Mon, 21 Nov 2022 19:40:28 +0300 Subject: [PATCH] Use preload_order for tx actions --- apps/explorer/lib/explorer/chain/transaction.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/explorer/lib/explorer/chain/transaction.ex b/apps/explorer/lib/explorer/chain/transaction.ex index 0ed797829e..b888ba67d0 100644 --- a/apps/explorer/lib/explorer/chain/transaction.ex +++ b/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,