This commit is contained in:
Roman Volosovskyi 2017-07-17 15:50:18 +03:00
parent 670f873d2e
commit 04c047a811
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
(ns status-im.contacts.validations
(:require [cljs.spec.alpha :as s]
[clojure.string :as str]
[status-im.data-store.contacts :as contacts]))
[status-im.data-store.contacts :as contacts]
[status-im.js-dependencies :as dependencies]))
(defn is-address? [s]
(.isAddress web3.prototype s))
(.isAddress dependencies/Web3.prototype s))
(defn contact-can-be-added? [identity]
(if (contacts/exists? identity)