|
|
@ -147,6 +147,10 @@ defmodule BlockScoutWeb.AddressContractVerificationController do |
|
|
|
{:ok, _verified_status} <- Sourcify.check_by_address(address_hash_string) do |
|
|
|
{:ok, _verified_status} <- Sourcify.check_by_address(address_hash_string) do |
|
|
|
get_metadata_and_publish(address_hash_string, conn) |
|
|
|
get_metadata_and_publish(address_hash_string, conn) |
|
|
|
else |
|
|
|
else |
|
|
|
|
|
|
|
{:error, "partial"} -> |
|
|
|
|
|
|
|
{:ok, status, metadata} = Sourcify.check_by_address_any(address_hash_string) |
|
|
|
|
|
|
|
process_metadata_and_publish(address_hash_string, metadata, status == "partial", conn) |
|
|
|
|
|
|
|
|
|
|
|
{:error, %{"error" => error}} -> |
|
|
|
{:error, %{"error" => error}} -> |
|
|
|
EventsPublisher.broadcast( |
|
|
|
EventsPublisher.broadcast( |
|
|
|
prepare_verification_error(error, address_hash_string, conn), |
|
|
|
prepare_verification_error(error, address_hash_string, conn), |
|
|
|