Skip to content

Commit

Permalink
Merge pull request #4696 from input-output-hk/jordan/append-change-tx…
Browse files Browse the repository at this point in the history
…out-build

Append tx output in cli transaction build command
  • Loading branch information
Jimbo4350 authored Dec 7, 2022
2 parents 6e6c0fa + eb7c44b commit 63e5a49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cardano-api/src/Cardano/Api/Fees.hs
Original file line number Diff line number Diff line change
Expand Up @@ -947,9 +947,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?
}
Expand Down

0 comments on commit 63e5a49

Please sign in to comment.