From 6dc3c4962fff1b13cea876dc39166a764101aba3 Mon Sep 17 00:00:00 2001 From: Jordan Millar Date: Fri, 3 Feb 2023 16:56:39 -0400 Subject: [PATCH] Prepend the change output in makeTransactionBodyAutoBalance --- cardano-api/src/Cardano/Api/Fees.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cardano-api/src/Cardano/Api/Fees.hs b/cardano-api/src/Cardano/Api/Fees.hs index 4c8c16a1257..475db9362b2 100644 --- a/cardano-api/src/Cardano/Api/Fees.hs +++ b/cardano-api/src/Cardano/Api/Fees.hs @@ -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