Skip to content

Commit f0e5a6c

Browse files
committed
Fixes
1 parent 397655f commit f0e5a6c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/status_im/contexts/wallet/common/utils.cljs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,7 @@
457457
details we've received from `status-go`. The new one contains only
458458
the keys we need."
459459
[send-details]
460-
(let [{:keys [uuid
461-
sendType
460+
(let [{:keys [sendType
462461
fromAddress
463462
toAddress
464463
fromChain
@@ -470,7 +469,7 @@
470469
username
471470
publicKey
472471
packId]} send-details]
473-
{:uuid uuid
472+
{:uuid (:uuid send-details)
474473
:send-type sendType
475474
:address-from fromAddress
476475
:address-to toAddress
@@ -493,15 +492,15 @@
493492
[send-details sent-transaction]
494493
(let [send-details (send-details-map send-details)
495494
{:keys [toAddress fromChain toChain amountIn
496-
amountOut fromToken toToken hash
495+
amountOut fromToken toToken
497496
approvalTx]} sent-transaction
498497
amount-in (money/from-hex amountIn)
499498
amount-out (money/from-hex amountOut)
500499
sent-transaction? (and sent-transaction (> (-> sent-transaction :hash count) 0))]
501500
(if sent-transaction?
502501
(cond-> send-details
503502
:always (assoc :tx-to toAddress
504-
:tx-hash hash
503+
:tx-hash (:hash sent-transaction)
505504
:approval-tx? approvalTx)
506505
(> fromChain 0) (assoc :from-chain fromChain)
507506
(> toChain 0) (assoc :to-chain toChain)

0 commit comments

Comments
 (0)