Skip to content

Conversation

@Jimbo4350
Copy link
Contributor

@Jimbo4350 Jimbo4350 commented Jan 28, 2026

Changelog

Resolves:

- description: |
    TxBodyContent refactoring related fixes
  type:
  - breaking      

  projects:
   - cardano-api

Context

Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.

How to trust this PR

Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

@Jimbo4350 Jimbo4350 force-pushed the jordan/tx-body-content-refactoring-fixes branch from 6d19014 to 8a02481 Compare January 28, 2026 18:51
@Jimbo4350 Jimbo4350 force-pushed the jordan/tx-body-content-refactoring-fixes branch from 2f27bcb to 94d2bf5 Compare January 28, 2026 20:44
toLedgerDatum (OldApi.TxOutDatumHash _ (Api.ScriptDataHash h)) = L.DatumHash h
toLedgerDatum (OldApi.TxOutSupplementalDatum _ h) =
case L.makeBinaryData $ SBS.toShort $ Api.getOriginalScriptDataBytes h of
Left e -> error $ show e
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Convert to Either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants