From 5a408f161393e352bf9ba8e86117d2f059446f8a Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Sat, 30 Nov 2019 19:07:52 +0200 Subject: [PATCH] [#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. --- src/status_im/hardwallet/core.cljs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/status_im/hardwallet/core.cljs b/src/status_im/hardwallet/core.cljs index 2bb9492510..454cdbe66d 100644 --- a/src/status_im/hardwallet/core.cljs +++ b/src/status_im/hardwallet/core.cljs @@ -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