From 96ed1fdeb978860aeb09bb475e9cf0ab338311f8 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Wed, 29 Apr 2020 11:24:16 +0300 Subject: [PATCH] [#10431] Show pending txs in keycard multiacc --- src/status_im/signing/core.cljs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/status_im/signing/core.cljs b/src/status_im/signing/core.cljs index 845dbbc395..f591b1c5a2 100644 --- a/src/status_im/signing/core.cljs +++ b/src/status_im/signing/core.cljs @@ -107,8 +107,10 @@ :cb #(re-frame/dispatch [:signing/transaction-completed % tx-obj-to-send hashed-password])}}))))) (fx/defn prepare-unconfirmed-transaction - [{:keys [db now]} hash {:keys [value gasPrice gas data to from]} symbol amount] - (let [token (tokens/symbol->token (:wallet/all-tokens db) symbol)] + [{:keys [db now]} hash {:keys [value gasPrice gas data to from] :as tx} symbol amount] + (log/debug "[signing] prepare-unconfirmed-transaction") + (let [token (tokens/symbol->token (:wallet/all-tokens db) symbol) + from (eip55/address->checksum from)] {:db (assoc-in db [:wallet :accounts from :transactions hash] {:timestamp (str now) :to to