parent
8fbab5cac3
commit
57f6b4d6d1
@ -1,8 +1,5 @@ |
|||||||
defmodule ExplorerWeb.AddressContractView do |
defmodule ExplorerWeb.AddressContractView do |
||||||
use ExplorerWeb, :view |
use ExplorerWeb, :view |
||||||
|
|
||||||
alias Explorer.Chain.{Address, SmartContract} |
import ExplorerWeb.AddressView, only: [smart_contract_verified?: 1] |
||||||
|
|
||||||
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