|
|
|
@ -275,6 +275,7 @@ defmodule BlockScoutWeb.AddressContractVerificationController do |
|
|
|
|
if Chain.smart_contract_fully_verified?(address_hash_string) do |
|
|
|
|
{:ok, :already_fully_verified} |
|
|
|
|
else |
|
|
|
|
if Application.get_env(:explorer, Explorer.ThirdPartyIntegrations.Sourcify)[:enabled] do |
|
|
|
|
if Chain.smart_contract_verified?(address_hash_string) do |
|
|
|
|
case Sourcify.check_by_address(address_hash_string) do |
|
|
|
|
{:ok, _verified_status} -> |
|
|
|
@ -295,6 +296,9 @@ defmodule BlockScoutWeb.AddressContractVerificationController do |
|
|
|
|
{:error, :not_verified} |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
else |
|
|
|
|
{:error, :sourcify_disabled} |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|