Skip to content

Commit d18a07c

Browse files
committed
Add changelog fragment for PR #1209
1 parent d848cec commit d18a07c

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
project: cardano-api
2+
pr: 1209
3+
kind:
4+
- breaking
5+
description: |
6+
Remove legacy `TxOut ctx era` from the Compatible and Experimental APIs.
7+
8+
`createCompatibleTx` now takes `[Exp.TxOut (ShelleyLedgerEra era)]` plus an explicit `Map L.DataHash (L.Data (ShelleyLedgerEra era))` for supplemental datums, mirroring how it already takes `Exp.TxCertificates` / `Exp.TxVotingProcedures` / `Exp.TxProposalProcedures`. The legacy `TxOut CtxTx era` bundled supplemental datums inside outputs; `Exp.TxOut` only carries the datum hash (the full datum lives in the witness set), so callers now thread them in explicitly.
9+
10+
Deletes the legacy bridge helpers re-exported from `Cardano.Api.Experimental.Tx`:
11+
12+
- `fromLegacyTxOut`
13+
- `legacyDatumToDatum`
14+
- `supplementalDatumFromLegacy`
15+
- `toLedgerDatum`
16+
- `DatumDecodingError`
17+
18+
These existed solely to convert legacy `TxOut CtxTx era` / `TxOutDatum CtxTx era` values into the experimental world. With the Compatible API no longer accepting the legacy type, they had no remaining in-repo callers. They are not re-exported from top-level `Cardano.Api`.
19+
20+
The legacy `TxOut ctx era` type itself is unchanged — `UTxO`, `Tx` body construction, fee/balancing, `LedgerState`, and Byron all still depend on it.

0 commit comments

Comments
 (0)