From 5b1f25d545d625cd5df12af8bb87df794db4ed53 Mon Sep 17 00:00:00 2001 From: Brian Sztamfater Date: Fri, 6 Dec 2024 13:32:05 -0300 Subject: [PATCH] fix_: sometimes balances are not updated until relogin (#21748) https://github.com/status-im/status-go/compare/a61f28bf...5371520f Signed-off-by: Brian Sztamfater --- src/status_im/contexts/wallet/events.cljs | 2 +- src/status_im/contexts/wallet/events_test.cljs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/status_im/contexts/wallet/events.cljs b/src/status_im/contexts/wallet/events.cljs index 48901a3fb6..6f69066ba6 100644 --- a/src/status_im/contexts/wallet/events.cljs +++ b/src/status_im/contexts/wallet/events.cljs @@ -215,7 +215,7 @@ {:db (assoc-in db [:wallet :ui :tokens-loading address] true) :fx [[:json-rpc/call [{:method "wallet_fetchOrGetCachedWalletBalances" - :params [[address]] + :params [[address] true] :on-success [:wallet/store-wallet-token address] :on-error [:wallet/get-wallet-token-for-account-failed address]}]]]})) diff --git a/src/status_im/contexts/wallet/events_test.cljs b/src/status_im/contexts/wallet/events_test.cljs index 65eee75a04..d81641d9be 100644 --- a/src/status_im/contexts/wallet/events_test.cljs +++ b/src/status_im/contexts/wallet/events_test.cljs @@ -125,7 +125,7 @@ (let [expected-effects {:db {:wallet {:ui {:tokens-loading {address true}}}} :fx [[:json-rpc/call [{:method "wallet_fetchOrGetCachedWalletBalances" - :params [[address]] + :params [[address] true] :on-success [:wallet/store-wallet-token address] :on-error [:wallet/get-wallet-token-for-account-failed address]}]]]}]