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:
Igor Mandrigin 2018-05-28 15:06:03 +02:00
parent 203f399aca
commit 2a7c58ad25
No known key found for this signature in database
GPG Key ID: 4A0EDDE26E66BC8B
1 changed files with 3 additions and 2 deletions

View File

@ -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?))