parent
3ba22fdb83
commit
a9f3e2b0d1
@ -1,3 +1,8 @@ |
|||||||
defmodule ExplorerWeb.AddressContractView do |
defmodule ExplorerWeb.AddressContractView do |
||||||
use ExplorerWeb, :view |
use ExplorerWeb, :view |
||||||
|
|
||||||
|
alias Explorer.Chain.{Address, SmartContract} |
||||||
|
|
||||||
|
def smart_contract_verified?(%Address{smart_contract: nil}), do: false |
||||||
|
def smart_contract_verified?(%Address{smart_contract: %SmartContract{}}), do: true |
||||||
end |
end |
||||||
|
Loading…
Reference in new issue