parent
8fbab5cac3
commit
57f6b4d6d1
@ -1,8 +1,5 @@ |
||||
defmodule ExplorerWeb.AddressContractView do |
||||
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 |
||||
import ExplorerWeb.AddressView, only: [smart_contract_verified?: 1] |
||||
end |
||||
|
Loading…
Reference in new issue