mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 18:46:19 +00:00
Show status-go version again.
Also, don't hide errors when it is impossible to parse versions string that comes from status-go. Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
parent
c56ef18ca9
commit
e588de35aa
@ -1 +1 @@
|
|||||||
0.23.0-beta.1
|
0.23.0-beta.4
|
||||||
|
@ -57,10 +57,12 @@
|
|||||||
-version
|
-version
|
||||||
(getNode
|
(getNode
|
||||||
(fn [err resp]
|
(fn [err resp]
|
||||||
(when-not err
|
(if-not err
|
||||||
(cb resp))))))
|
(cb resp)
|
||||||
|
(log/warn (str "unable to obtain web3 version:" err)))))))
|
||||||
|
|
||||||
(defn fetch-node-version-callback
|
(defn fetch-node-version-callback
|
||||||
[resp {:keys [db]}]
|
[resp {:keys [db]}]
|
||||||
(when-let [node-version (second (re-find #"StatusIM/v(.*)/.*/.*" resp))]
|
(if-let [node-version (second (re-find #"StatusIM/v(.*)/.*/.*" resp))]
|
||||||
{:db (assoc db :web3-node-version node-version)}))
|
{:db (assoc db :web3-node-version node-version)}
|
||||||
|
(log/warn (str "unexpected web3 version format: " "'" resp "'"))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user