From eb7c44b0d21984f921b26cb1bfe53a8ea8af444d Mon Sep 17 00:00:00 2001 From: Jordan Date: Tue, 6 Dec 2022 12:42:14 -0400 Subject: [PATCH] Append tx output in cli transaction build command --- cardano-api/src/Cardano/Api/Fees.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cardano-api/src/Cardano/Api/Fees.hs b/cardano-api/src/Cardano/Api/Fees.hs index 07fc5c18813..fd0d2661957 100644 --- a/cardano-api/src/Cardano/Api/Fees.hs +++ b/cardano-api/src/Cardano/Api/Fees.hs @@ -936,9 +936,8 @@ makeTransactionBodyAutoBalance eraInMode systemstart history pparams -- 4. balance the transaction and update tx change output txbody0 <- first TxBodyError $ createAndValidateTransactionBody txbodycontent - { txOuts = - TxOut changeaddr (lovelaceToTxOutValue 0) TxOutDatumNone ReferenceScriptNone - : txOuts txbodycontent + { txOuts = txOuts txbodycontent ++ + [TxOut changeaddr (lovelaceToTxOutValue 0) TxOutDatumNone ReferenceScriptNone] --TODO: think about the size of the change output -- 1,2,4 or 8 bytes? }