Skip to content

Commit

Permalink
Merge pull request blockscout#5264 from blockscout/np-fix-partial-bug…
Browse files Browse the repository at this point in the history
…-sourcify

Fix bug with 500 response on `partial` sourcify status
  • Loading branch information
vbaranov authored and jagdeep sidhu committed Mar 8, 2022
1 parent 466b494 commit 3345fe6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 3345fe6

Please sign in to comment.