fix #1458
This commit is contained in:
parent
670f873d2e
commit
04c047a811
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue