|
|
@ -999,7 +999,9 @@ defmodule Explorer.Chain do |
|
|
|
|> Repo.one() |
|
|
|
|> Repo.one() |
|
|
|
|
|
|
|
|
|
|
|
address_updated_result = |
|
|
|
address_updated_result = |
|
|
|
if address_result.smart_contract do |
|
|
|
case address_result do |
|
|
|
|
|
|
|
%{smart_contract: smart_contract} -> |
|
|
|
|
|
|
|
if smart_contract do |
|
|
|
address_result |
|
|
|
address_result |
|
|
|
else |
|
|
|
else |
|
|
|
address_verified_twin_contract = Chain.address_verified_twin_contract(hash) |
|
|
|
address_verified_twin_contract = Chain.address_verified_twin_contract(hash) |
|
|
@ -1017,6 +1019,10 @@ defmodule Explorer.Chain do |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_ -> |
|
|
|
|
|
|
|
address_result |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
address_updated_result |
|
|
|
address_updated_result |
|
|
|
|> case do |
|
|
|
|> case do |
|
|
|
nil -> {:error, :not_found} |
|
|
|
nil -> {:error, :not_found} |
|
|
|