Skip to content

Commit

Permalink
[#9061] Fix balances fetching of a new keycard account
Browse files Browse the repository at this point in the history
This issue wasn't properly fixed for a newly created account, balance
was properly fetched only after re-login.
  • Loading branch information
rasom committed Nov 30, 2019
1 parent f330392 commit 5a408f1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/status_im/hardwallet/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5a408f1

Please sign in to comment.