fix CR issues

pull/2037/head
Ayrat Badykov 6 years ago
parent 580598e7c0
commit 4e7d74f051
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 5
      apps/block_scout_web/lib/block_scout_web/controllers/address_logs_controller.ex

@ -76,7 +76,10 @@ defmodule BlockScoutWeb.AddressLogsController do
with {:ok, address_hash} <- Chain.string_to_address_hash(address_hash_string),
{:ok, address} <- Chain.hash_to_address(address_hash) do
topic = String.trim(topic)
logs_plus_one = Chain.address_to_logs(address, topic: topic)
formatted_topic = if String.starts_with?(topic, "0x"), do: topic, else: "0x" <> topic
logs_plus_one = Chain.address_to_logs(address, topic: formatted_topic)
{results, next_page} = split_list_by_page(logs_plus_one)

Loading…
Cancel
Save