Use MaskedData check in the app-db for wallet's password.
Fixes the regression introduced in `789ee61`, leading to being unable to sign transactions. Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
parent
203f399aca
commit
2a7c58ad25
|
@ -1,14 +1,15 @@
|
|||
(ns status-im.ui.screens.wallet.send.db
|
||||
(:require-macros [status-im.utils.db :refer [allowed-keys]])
|
||||
(:require [cljs.spec.alpha :as spec]
|
||||
[status-im.utils.money :as money]))
|
||||
[status-im.utils.money :as money]
|
||||
[status-im.utils.security :as security]))
|
||||
|
||||
(spec/def ::amount (spec/nilable money/valid?))
|
||||
(spec/def ::to (spec/nilable string?))
|
||||
(spec/def ::to-name (spec/nilable string?))
|
||||
(spec/def ::amount-error (spec/nilable string?))
|
||||
(spec/def ::amount-text (spec/nilable string?))
|
||||
(spec/def ::password (spec/nilable string?))
|
||||
(spec/def ::password (spec/nilable #(instance? security/MaskedData %)))
|
||||
(spec/def ::wrong-password? (spec/nilable boolean?))
|
||||
(spec/def ::id (spec/nilable string?))
|
||||
(spec/def ::waiting-signal? (spec/nilable boolean?))
|
||||
|
|
Loading…
Reference in New Issue