Fix qr code and bootnode
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
parent
d698ffe09e
commit
25ea0192e5
|
@ -3,6 +3,7 @@
|
|||
[re-frame.core :as re-frame]
|
||||
[status-im.accounts.update.core :as accounts.update]
|
||||
[status-im.i18n :as i18n]
|
||||
|
||||
[status-im.ui.screens.navigation :as navigation]
|
||||
[status-im.utils.fx :as fx]))
|
||||
|
||||
|
@ -92,7 +93,7 @@
|
|||
|
||||
(fx/defn set-bootnodes-from-qr
|
||||
[cofx url]
|
||||
(assoc (set-input :url url cofx)
|
||||
(assoc (set-input cofx :url (string/trim url))
|
||||
:dispatch [:navigate-back]))
|
||||
|
||||
(fx/defn show-delete-bootnode-confirmation
|
||||
|
|
|
@ -61,6 +61,13 @@
|
|||
:error true}}}}
|
||||
(model/set-input {:db {}} :url "broken"))))))
|
||||
|
||||
(deftest set-bootnode-from-qr
|
||||
(testing "correct name"
|
||||
(is (= {:dispatch [:navigate-back]
|
||||
:db {:bootnodes/manage {:url {:value valid-bootnode-address
|
||||
:error false}}}}
|
||||
(model/set-bootnodes-from-qr {:db {}} (str valid-bootnode-address " "))))))
|
||||
|
||||
(deftest edit-bootnode
|
||||
(let [db {:network "mainnet_rpc"
|
||||
:account/account
|
||||
|
|
Loading…
Reference in New Issue