diff --git a/lib/explorer/ethereumex_extensions.ex b/lib/explorer/ethereumex_extensions.ex index d4d1502586..7f80869f8b 100644 --- a/lib/explorer/ethereumex_extensions.ex +++ b/lib/explorer/ethereumex_extensions.ex @@ -5,6 +5,7 @@ defmodule Explorer.EthereumexExtensions do alias Ethereumex.HttpClient + @dialyzer {:nowarn_function, trace_transaction: 1} def trace_transaction(hash) do params = [hash, ["trace"]] {:ok, trace} = HttpClient.request("trace_replayTransaction", params, []) diff --git a/lib/explorer/importers/internal_transaction_importer.ex b/lib/explorer/importers/internal_transaction_importer.ex index 788ea9815f..8f3b0f9b2f 100644 --- a/lib/explorer/importers/internal_transaction_importer.ex +++ b/lib/explorer/importers/internal_transaction_importer.ex @@ -9,6 +9,7 @@ defmodule Explorer.InternalTransactionImporter do alias Explorer.Repo alias Explorer.Transaction + @dialyzer {:nowarn_function, import: 1} def import(hash) do transaction = find_transaction(hash) hash @@ -17,6 +18,7 @@ defmodule Explorer.InternalTransactionImporter do |> persist_internal_transactions(transaction) end + @dialyzer {:nowarn_function, download_trace: 1} defp download_trace(hash) do EthereumexExtensions.trace_transaction(hash) end @@ -28,6 +30,7 @@ defmodule Explorer.InternalTransactionImporter do Repo.one!(query) end + @dialyzer {:nowarn_function, extract_attrs: 1} defp extract_attrs(attrs) do trace = attrs["trace"] trace |> Enum.with_index() |> Enum.map(&extract_trace/1) @@ -55,6 +58,7 @@ defmodule Explorer.InternalTransactionImporter do defp from_address(%{"action" => %{"from" => address}}), do: address + @dialyzer {:nowarn_function, persist_internal_transactions: 2} defp persist_internal_transactions(traces, transaction) do Enum.map(traces, fn(trace) -> trace = Map.merge(trace, %{transaction_id: transaction.id})