[#9061] Fix balances fetching of a new keycard account

This issue wasn't properly fixed for a newly created account, balance
was properly fetched only after re-login.
This commit is contained in:
Roman Volosovskyi 2019-11-30 19:07:52 +02:00
parent f330392ccf
commit 5a408f1613
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 8 additions and 5 deletions

View File

@ -22,7 +22,8 @@
[status-im.constants :as constants]
[status-im.multiaccounts.update.core :as multiaccounts.update]
[status-im.ui.components.bottom-sheet.core :as bottom-sheet]
[status-im.multiaccounts.recover.core :as recover]))
[status-im.multiaccounts.recover.core :as recover]
[status-im.ethereum.eip55 :as eip55]))
(def default-pin "000000")
@ -1747,10 +1748,12 @@
(assoc-in [:hardwallet :setup-step] nil)
(assoc :intro-wizard nil))}
(multiaccounts.create/on-multiaccount-created
{:derived {constants/path-whisper-keyword {:publicKey whisper-public-key
:address whisper-address}
constants/path-default-wallet-keyword {:publicKey wallet-public-key
:address wallet-address}}
{:derived {constants/path-whisper-keyword
{:publicKey whisper-public-key
:address (eip55/address->checksum whisper-address)}
constants/path-default-wallet-keyword
{:publicKey wallet-public-key
:address (eip55/address->checksum wallet-address)}}
:mnemonic ""
:address address
:publicKey public-key