Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.

Commit 163b3e8

Browse files
Merge pull request input-output-hk/cardano-sl#3638 from input-output-hk/kderme/CBR-441
[CBR-441] Fix a bug where TxMeta didnt add the change outputs
2 parents 7ff9153 + 9d8db01 commit 163b3e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cardano/Wallet/Kernel/Transactions.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ newTransaction aw@ActiveWallet{..} spendingPassword options accountId payees = d
272272
-- to compute the createdAt timestamp for `TxMeta`
273273
txMetaCreatedAt_ <- liftIO $ Node.getCreationTimestamp (walletPassive ^. walletNode)
274274
-- partially applied, because we don`t know here which outputs are ours
275-
partialMeta <- liftIO $ createNewMeta accountId txId txMetaCreatedAt_ inputs (toaOut <$> outputs) True spentInputCoins
275+
partialMeta <- liftIO $ createNewMeta accountId txId txMetaCreatedAt_ inputs (_txOutputs . taTx $ txAux) True spentInputCoins
276276
return (txAux, partialMeta, availableUtxo)
277277
where
278278
-- | Generates the list of change outputs from a list of change coins.

0 commit comments

Comments
 (0)