Skip to content

Commit

Permalink
TMP: leave TODO about what's left for the real execution units handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Oct 12, 2021
1 parent fc5a74d commit 9e78f2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/core/src/Cardano/Wallet/Api/Server.hs
Expand Up @@ -2286,6 +2286,12 @@ balanceTransaction ctx genChange (ApiT wid) body = do
let txUpdate =
TxUpdate { extraInputs, extraCollateral, extraOutputs, newFee }

-- TODO:
--
-- - Use / wire 'assignScriptRedeemers' on the result of 'updateTx' below
-- - Adjust the transaction one last time to add surplus to the change output!
-- - Enjoy
--
case ApiT <$> updateTx tl partialTx txUpdate of
Left err -> liftHandler $ throwE $ ErrBalanceTxUpdateError err
Right transaction -> pure $ ApiSerialisedTransaction { transaction }
Expand Down

0 comments on commit 9e78f2e

Please sign in to comment.