Skip to content

Commit 63e5a49

Browse files
authored
Merge pull request #4696 from input-output-hk/jordan/append-change-txout-build
Append tx output in cli transaction build command
2 parents 6e6c0fa + eb7c44b commit 63e5a49

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cardano-api/src/Cardano/Api/Fees.hs

+2-3
Original file line numberDiff line numberDiff line change
@@ -947,9 +947,8 @@ makeTransactionBodyAutoBalance eraInMode systemstart history pparams
947947
-- 4. balance the transaction and update tx change output
948948
txbody0 <-
949949
first TxBodyError $ createAndValidateTransactionBody txbodycontent
950-
{ txOuts =
951-
TxOut changeaddr (lovelaceToTxOutValue 0) TxOutDatumNone ReferenceScriptNone
952-
: txOuts txbodycontent
950+
{ txOuts = txOuts txbodycontent ++
951+
[TxOut changeaddr (lovelaceToTxOutValue 0) TxOutDatumNone ReferenceScriptNone]
953952
--TODO: think about the size of the change output
954953
-- 1,2,4 or 8 bytes?
955954
}

0 commit comments

Comments
 (0)