From 16218c112cc604c18a08844c162a0717e2bbb5a5 Mon Sep 17 00:00:00 2001 From: nikitosing Date: Tue, 5 Apr 2022 13:45:09 +0300 Subject: [PATCH] Fix getsourcecode for EOA addresses --- CHANGELOG.md | 1 + .../lib/block_scout_web/views/api/rpc/contract_view.ex | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8688f3d2cc..cf77dd58fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - [#5268](https://github.com/blockscout/blockscout/pull/5268) - Contract names display improvement ### Fixes +- [#5416](https://github.com/blockscout/blockscout/pull/5416) - Fix getsourcecode for EOA addresses - [#5383](https://github.com/blockscout/blockscout/pull/5383) - Fix reload transactions button - [#5381](https://github.com/blockscout/blockscout/pull/5381), [#5397](https://github.com/blockscout/blockscout/pull/5397) - Fix exchange rate broadcast error - [#5375](https://github.com/blockscout/blockscout/pull/5375) - Fix pending transactions fetcher diff --git a/apps/block_scout_web/lib/block_scout_web/views/api/rpc/contract_view.ex b/apps/block_scout_web/lib/block_scout_web/views/api/rpc/contract_view.ex index 11c5446e93..e0e9d43ec0 100644 --- a/apps/block_scout_web/lib/block_scout_web/views/api/rpc/contract_view.ex +++ b/apps/block_scout_web/lib/block_scout_web/views/api/rpc/contract_view.ex @@ -72,6 +72,10 @@ defmodule BlockScoutWeb.API.RPC.ContractView do |> set_proxy_info(contract) end + defp set_proxy_info(contract_output, contract) when contract == %{} do + contract_output + end + defp set_proxy_info(contract_output, contract) do result = if contract.is_proxy do