Skip to content

Commit

Permalink
Check if implementation is verified
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Jun 17, 2020
1 parent a801cfa commit 485a262
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions apps/explorer/lib/explorer/chain/transaction.ex
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,16 @@ defmodule Explorer.Chain.Transaction do

case Chain.string_to_address_hash(implementation_address_hash_string) do
{:ok, implementation_address_hash} ->
implementation_address_hash
|> Chain.address_hash_to_smart_contract()
|> Map.get(:abi)
implementation_smart_contract =
implementation_address_hash
|> Chain.address_hash_to_smart_contract()

if implementation_smart_contract do
implementation_smart_contract
|> Map.get(:abi)
else
[]
end

_ ->
[]
Expand Down

0 comments on commit 485a262

Please sign in to comment.