From 937efc9f4fb3ba6c0d0bd86c5fdae29517c6aa15 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Wed, 31 Mar 2021 16:36:13 +0300 Subject: [PATCH] [wallet #11944] Watch confirmation of sent tx when syncing is disabled --- src/status_im/wallet/core.cljs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/status_im/wallet/core.cljs b/src/status_im/wallet/core.cljs index 462d5409ec..84de0f1e59 100644 --- a/src/status_im/wallet/core.cljs +++ b/src/status_im/wallet/core.cljs @@ -677,8 +677,11 @@ (fx/defn restart {:events [::restart]} - [{:keys [db] :as cofx}] - (restart-wallet-service cofx {:force-start? true})) + [{:keys [db] :as cofx} ignore-syncing-settings?] + (restart-wallet-service + cofx + {:force-start? true + :ignore-syncing-settings? ignore-syncing-settings?})) (def pull-to-refresh-cooldown-period (* 1 60 1000)) @@ -705,7 +708,7 @@ (json-rpc/call {:method "wallet_watchTransaction" :params [hash] - :on-success #(re-frame.core/dispatch [::restart]) + :on-success #(re-frame.core/dispatch [::restart true]) :on-error #(log/info "[wallet] watch transaction error" % "hash" hash)}))) (fx/defn watch-tx