fix: deserialize custom bootnodes settings correctly

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
Andre Medeiros 2020-01-09 10:27:18 -05:00 committed by yenda
parent 7f0cfc0c69
commit fabbfc38f8
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,7 @@
(defn rpc->custom-bootnodes [custom-bootnodes] (defn rpc->custom-bootnodes [custom-bootnodes]
(reduce-kv (fn [acc chain custom-bootnodes] (reduce-kv (fn [acc chain custom-bootnodes]
(assoc acc (str chain) custom-bootnodes)) (assoc acc (name chain) custom-bootnodes))
{} {}
custom-bootnodes)) custom-bootnodes))
@ -39,4 +39,6 @@
(update :wallet/visible-tokens rpc->visible-tokens) (update :wallet/visible-tokens rpc->visible-tokens)
(update :pinned-mailservers rpc->pinned-mailservers) (update :pinned-mailservers rpc->pinned-mailservers)
(update :stickers/packs-installed rpc->stickers-packs) (update :stickers/packs-installed rpc->stickers-packs)
(update :custom-bootnodes rpc->custom-bootnodes)
(update :custom-bootnodes-enabled? rpc->custom-bootnodes)
(update :currency keyword))) (update :currency keyword)))