[#10431] Show pending txs in keycard multiacc

This commit is contained in:
Roman Volosovskyi 2020-04-29 11:24:16 +03:00
parent a6729ce8c5
commit 96ed1fdeb9
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 4 additions and 2 deletions

View File

@ -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