From e3f9af22de69ca840acaa2aa9ed6b4d02bf4fbd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=9F=D0=BE=D0=B7?= =?UTF-8?q?=D0=B4=D0=BD=D1=8F=D0=BA=D0=BE=D0=B2?= Date: Tue, 29 Nov 2022 11:53:20 +0300 Subject: [PATCH] Fix get_implementation_address_hash call --- .../lib/block_scout_web/views/api/v2/address_view.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/views/api/v2/address_view.ex b/apps/block_scout_web/lib/block_scout_web/views/api/v2/address_view.ex index 7cea8b97ec..6d43e493e1 100644 --- a/apps/block_scout_web/lib/block_scout_web/views/api/v2/address_view.ex +++ b/apps/block_scout_web/lib/block_scout_web/views/api/v2/address_view.ex @@ -5,7 +5,7 @@ defmodule BlockScoutWeb.API.V2.AddressView do alias BlockScoutWeb.API.V2.{ApiView, Helper, TokenView} alias BlockScoutWeb.API.V2.Helper alias Explorer.{Chain, Market} - alias Explorer.Chain.Address + alias Explorer.Chain.{Address, SmartContract} alias Explorer.ExchangeRates.Token def render("message.json", assigns) do @@ -38,7 +38,7 @@ defmodule BlockScoutWeb.API.V2.AddressView do {implementation_address, implementation_name} = with true <- is_proxy, - {address, name} <- Chain.get_implementation_address_hash(address.hash, address.smart_contract.abi), + {address, name} <- SmartContract.get_implementation_address_hash(address.smart_contract), false <- is_nil(address), {:ok, address_hash} <- Chain.string_to_address_hash(address), checksummed_address <- Address.checksum(address_hash) do