We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e6c0fa + eb7c44b commit 63e5a49Copy full SHA for 63e5a49
cardano-api/src/Cardano/Api/Fees.hs
@@ -947,9 +947,8 @@ makeTransactionBodyAutoBalance eraInMode systemstart history pparams
947
-- 4. balance the transaction and update tx change output
948
txbody0 <-
949
first TxBodyError $ createAndValidateTransactionBody txbodycontent
950
- { txOuts =
951
- TxOut changeaddr (lovelaceToTxOutValue 0) TxOutDatumNone ReferenceScriptNone
952
- : txOuts txbodycontent
+ { txOuts = txOuts txbodycontent ++
+ [TxOut changeaddr (lovelaceToTxOutValue 0) TxOutDatumNone ReferenceScriptNone]
953
--TODO: think about the size of the change output
954
-- 1,2,4 or 8 bytes?
955
}
0 commit comments