Skip to content

Commit

Permalink
[#9061] fix fetching balances for keycard acc
Browse files Browse the repository at this point in the history
  • Loading branch information
rasom committed Oct 29, 2019
1 parent 0856ae1 commit 4a65852
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/status_im/multiaccounts/login/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
[status-im.wallet.core :as wallet]
[taoensso.timbre :as log]
[status-im.ui.screens.db :refer [app-db]]
[status-im.multiaccounts.biometric.core :as biometric]))
[status-im.multiaccounts.biometric.core :as biometric]
[status-im.ethereum.eip55 :as eip55]))

(def rpc-endpoint "https://goerli.infura.io/v3/f315575765b14720b32382a61a89341a")
(def contract-address "0xfbf4c8e2B41fAfF8c616a0E49Fb4365a5355Ffaf")
Expand Down Expand Up @@ -138,7 +139,16 @@
{:db (assoc db
:networks/current-network current-network
:networks/networks networks
:multiaccount multiaccount)
:multiaccount (-> multiaccount
(update :address eip55/address->checksum)
(update :accounts
(fn [accounts]
(mapv
#(update
%
:address
eip55/address->checksum)
accounts)))))
:notifications/request-notifications-permissions nil}
;; NOTE: initializing mailserver depends on user mailserver
;; preference which is why we wait for config callback
Expand Down Expand Up @@ -318,4 +328,4 @@
(fx/merge cofx
{:db (assoc-in db [:multiaccounts/login :save-password?] true)}
(biometric/show-message bioauth-message bioauth-code)
(open-login-callback nil)))))
(open-login-callback nil)))))

0 comments on commit 4a65852

Please sign in to comment.