diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e73eb09ff..a08b87e891 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Fixes - [#5269](https://github.com/blockscout/blockscout/pull/5269) - Address Page: Fix implementation address align +- [#5264](https://github.com/blockscout/blockscout/pull/5264) - Fix bug with 500 response on `partial` sourcify status - [#5259](https://github.com/blockscout/blockscout/pull/5259) - Fix `coin-balances/by-day` bug ### Chore diff --git a/apps/block_scout_web/lib/block_scout_web/controllers/address_contract_verification_controller.ex b/apps/block_scout_web/lib/block_scout_web/controllers/address_contract_verification_controller.ex index ee9cba0d08..d02caf850b 100644 --- a/apps/block_scout_web/lib/block_scout_web/controllers/address_contract_verification_controller.ex +++ b/apps/block_scout_web/lib/block_scout_web/controllers/address_contract_verification_controller.ex @@ -147,6 +147,10 @@ defmodule BlockScoutWeb.AddressContractVerificationController do {:ok, _verified_status} <- Sourcify.check_by_address(address_hash_string) do get_metadata_and_publish(address_hash_string, conn) 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}} -> EventsPublisher.broadcast( prepare_verification_error(error, address_hash_string, conn),