added param deviceType (#15136)

This commit is contained in:
frank 2023-02-28 21:43:10 +08:00 committed by GitHub
parent c2782a26f7
commit b75e1304d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 6 deletions

View File

@ -7,7 +7,8 @@
[status-im2.config :as config]
[status-im.node.core :as node]
[re-frame.core :as re-frame]
[status-im.data-store.settings :as data-store.settings]))
[status-im.data-store.settings :as data-store.settings]
[status-im.utils.platform :as utils.platform]))
(defn- get-default-node-config
[installation-id]
@ -32,7 +33,8 @@
(let [config-map (.stringify js/JSON
(clj->js {:kdfIterations config/default-kdf-iterations
:nodeConfig final-node-config
:settingCurrentNetwork config/default-network}))]
:settingCurrentNetwork config/default-network
:deviceType utils.platform/os}))]
(status/input-connection-string-for-bootstrapping
connection-string
config-map
@ -46,7 +48,11 @@
[{:keys [db]} entered-password]
(let [sha3-pwd (status/sha3 (str (security/safe-unmask-data entered-password)))
key-uid (get-in db [:multiaccount :key-uid])
config-map (.stringify js/JSON (clj->js {:keyUID key-uid :keystorePath "" :password sha3-pwd}))]
config-map (.stringify js/JSON
(clj->js {:keyUID key-uid
:keystorePath ""
:password sha3-pwd
:deviceType utils.platform/os}))]
(status/get-connection-string-for-bootstrapping-another-device
config-map
(fn [connection-string]

View File

@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
"owner": "status-im",
"repo": "status-go",
"version": "v0.133.2",
"commit-sha1": "f77bff6d25d53e264a6fca3c2d0bb0e8d07e474e",
"src-sha256": "0hm63fsjrnigb5a2l44ybf3pmqmgad4hwnxwqs96rxdx5p98vbv1"
"version": "v0.134.0",
"commit-sha1": "a9bfed21a7ef2729846f6e45b6b2c052b4efd438",
"src-sha256": "00gdnxr80qc0aj9mrwl5pp48524igmzc895jg7llhap8p36d8p7g"
}