chore: fix unused var warning

pull/1119/head
zachdaniel 6 years ago
parent ee3c1b3d34
commit 8a1b408f8e
  1. 2
      apps/explorer/lib/explorer/chain/log.ex

@ -104,7 +104,7 @@ defmodule Explorer.Chain.Log do
@doc """ @doc """
Decode transaction log data. Decode transaction log data.
""" """
def decode(log, %Transaction{to_address: nil}), do: {:error, :no_to_address} def decode(_log, %Transaction{to_address: nil}), do: {:error, :no_to_address}
def decode(log, %Transaction{to_address: %{smart_contract: %{abi: abi}}}) when not is_nil(abi) do def decode(log, %Transaction{to_address: %{smart_contract: %{abi: abi}}}) when not is_nil(abi) do
with {:ok, selector, mapping} <- find_and_decode(abi, log), with {:ok, selector, mapping} <- find_and_decode(abi, log),
identifier <- Base.encode16(selector.method_id, case: :lower), identifier <- Base.encode16(selector.method_id, case: :lower),

Loading…
Cancel
Save