|
|
@ -26,8 +26,8 @@ defmodule BlockScoutWeb.AddressReadContractController do |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
with {:ok, address_hash} <- Chain.string_to_address_hash(address_hash_string), |
|
|
|
with {:ok, address_hash} <- Chain.string_to_address_hash(address_hash_string), |
|
|
|
{:ok, address} <- Chain.find_contract_address(address_hash, address_options, true) do |
|
|
|
{:ok, address} <- Chain.find_contract_address(address_hash, address_options, true), |
|
|
|
if address.smart_contract do |
|
|
|
false <- is_nil(address.smart_contract) do |
|
|
|
{transaction_count, validation_count} = transaction_and_validation_count(address_hash) |
|
|
|
{transaction_count, validation_count} = transaction_and_validation_count(address_hash) |
|
|
|
|
|
|
|
|
|
|
|
render( |
|
|
|
render( |
|
|
@ -40,13 +40,7 @@ defmodule BlockScoutWeb.AddressReadContractController do |
|
|
|
validation_count: validation_count |
|
|
|
validation_count: validation_count |
|
|
|
) |
|
|
|
) |
|
|
|
else |
|
|
|
else |
|
|
|
not_found(conn) |
|
|
|
_ -> |
|
|
|
end |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
:error -> |
|
|
|
|
|
|
|
not_found(conn) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{:error, :not_found} -> |
|
|
|
|
|
|
|
not_found(conn) |
|
|
|
not_found(conn) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|