mirror of
https://github.com/status-im/status-react.git
synced 2025-01-27 11:16:03 +00:00
[Fix #3319] STT/SNT tokens are not shown by default for recovered account
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
parent
25a5655e74
commit
48dd386051
@ -35,6 +35,10 @@
|
||||
#_
|
||||
{:id :postponed :label (i18n/label :t/postponed) :checked? true}]}})
|
||||
|
||||
(def default-account-settings
|
||||
{:wallet {:visible-tokens {:testnet #{:STT}
|
||||
:mainnet #{:SNT}}}})
|
||||
|
||||
(defn- transform-config [networks]
|
||||
(->> networks
|
||||
(map (fn [[network-name {:keys [config] :as data}]]
|
||||
|
@ -14,6 +14,7 @@
|
||||
[status-im.utils.signing-phrase.core :as signing-phrase]
|
||||
[status-im.utils.gfycat.core :refer [generate-gfy]]
|
||||
[status-im.utils.hex :as utils.hex]
|
||||
[status-im.constants :as constants]
|
||||
status-im.ui.screens.accounts.create.navigation))
|
||||
|
||||
;;;; COFX
|
||||
@ -120,7 +121,7 @@
|
||||
:photo-path (identicon pubkey)
|
||||
:signing-phrase signing-phrase
|
||||
:mnemonic mnemonic
|
||||
:settings {:wallet {:visible-tokens {:testnet #{:STT} :mainnet #{:SNT}}}}}]
|
||||
:settings constants/default-account-settings}]
|
||||
(log/debug "account-created")
|
||||
(when-not (str/blank? pubkey)
|
||||
(-> (add-account db account)
|
||||
|
@ -10,7 +10,8 @@
|
||||
[status-im.utils.handlers :as handlers]
|
||||
[status-im.utils.gfycat.core :as gfycat]
|
||||
[status-im.utils.signing-phrase.core :as signing-phrase]
|
||||
[status-im.utils.hex :as utils.hex]))
|
||||
[status-im.utils.hex :as utils.hex]
|
||||
[status-im.constants :as constants]))
|
||||
|
||||
;;;; FX
|
||||
|
||||
@ -41,7 +42,8 @@
|
||||
:updates-private-key private
|
||||
:mnemonic ""
|
||||
:signed-up? true
|
||||
:signing-phrase phrase}]
|
||||
:signing-phrase phrase
|
||||
:settings constants/default-account-settings}]
|
||||
(when-not (string/blank? public-key)
|
||||
(-> db
|
||||
(accounts-events/add-account account)
|
||||
|
Loading…
x
Reference in New Issue
Block a user