preload smart contract for logs decoding

pull/2410/head
Ayrat Badykov 5 years ago
parent 485b51f9b5
commit 12bf6043d5
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 2
      apps/block_scout_web/lib/block_scout_web/controllers/transaction_log_controller.ex

@ -11,7 +11,7 @@ defmodule BlockScoutWeb.TransactionLogController do
def index(conn, %{"transaction_id" => transaction_hash_string, "type" => "JSON"} = params) do
with {:ok, transaction_hash} <- Chain.string_to_transaction_hash(transaction_hash_string),
{:ok, transaction} <-
Chain.hash_to_transaction(transaction_hash) do
Chain.hash_to_transaction(transaction_hash, [necessity_by_association: %{[to_address: :smart_contract] => :optional}]) do
full_options =
Keyword.merge(
[

Loading…
Cancel
Save