Skip to content

Commit

Permalink
Prepend the change output in makeTransactionBodyAutoBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Feb 3, 2023
1 parent d134a8e commit 6dc3c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cardano-api/src/Cardano/Api/Fees.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ makeTransactionBodyAutoBalance eraInMode systemstart history pparams
Lovelace 0 -> rest
-- We append change at the end so a client can predict the indexes
-- of the outputs
_ -> rest ++ [change]
_ -> change : rest

balanceCheck :: TxOutValue era -> Either TxBodyErrorAutoBalance ()
balanceCheck balance
Expand Down

0 comments on commit 6dc3c49

Please sign in to comment.