From a66e2b6e8384a234ffc728e33de885c067a087b0 Mon Sep 17 00:00:00 2001 From: Tim Mecklem Date: Tue, 5 Jun 2018 15:16:20 -0400 Subject: [PATCH] Remove joins to address table Co-authored-by: Stamates --- .../explorer_web/controllers/transaction_controller.ex | 4 +--- .../lib/explorer_web/templates/address/_link.html.eex | 10 +++++----- .../address_internal_transaction/index.html.eex | 4 ++-- .../templates/address_transaction/index.html.eex | 4 ++-- .../templates/block_transaction/index.html.eex | 4 ++-- .../lib/explorer_web/templates/chain/_blocks.html.eex | 2 +- .../templates/chain/_transactions.html.eex | 4 ++-- .../templates/pending_transaction/index.html.eex | 4 ++-- .../explorer_web/templates/transaction/index.html.eex | 4 ++-- .../transaction_internal_transaction/index.html.eex | 4 ++-- .../lib/explorer_web/views/address_view.ex | 3 ++- 11 files changed, 23 insertions(+), 24 deletions(-) diff --git a/apps/explorer_web/lib/explorer_web/controllers/transaction_controller.ex b/apps/explorer_web/lib/explorer_web/controllers/transaction_controller.ex index 684703e036..e262d55711 100644 --- a/apps/explorer_web/lib/explorer_web/controllers/transaction_controller.ex +++ b/apps/explorer_web/lib/explorer_web/controllers/transaction_controller.ex @@ -22,9 +22,7 @@ defmodule ExplorerWeb.TransactionController do Keyword.merge( [ necessity_by_association: %{ - block: :required, - from_address: :optional, - to_address: :optional + block: :required } ], options diff --git a/apps/explorer_web/lib/explorer_web/templates/address/_link.html.eex b/apps/explorer_web/lib/explorer_web/templates/address/_link.html.eex index d82944a646..96a579f41a 100644 --- a/apps/explorer_web/lib/explorer_web/templates/address/_link.html.eex +++ b/apps/explorer_web/lib/explorer_web/templates/address/_link.html.eex @@ -1,14 +1,14 @@