Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make shelley TxWits consistent with other eras #4160

Merged
merged 3 commits into from
Mar 5, 2024

Conversation

Lucsanszky
Copy link
Contributor

@Lucsanszky Lucsanszky commented Mar 4, 2024

Description

Resolves #3959

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

@Lucsanszky Lucsanszky force-pushed the lucsanszky/txwits-consistency branch from a2c1f39 to 2c13d0b Compare March 5, 2024 02:13
@Lucsanszky
Copy link
Contributor Author

I also moved mapTraverseableDecoderA from Alonzo.TxWits to Shelley.TxWits. Although, it might be better to move it to Decoding in cardano-ledger-binary. Any suggestions?

I'll also update the CHANGELOGs and then this will be ready for review.

Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

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

Looking good.

I also moved mapTraverseableDecoderA from Alonzo.TxWits to Shelley.TxWits.

That's totally fine

Although, it might be better to move it to Decoding in cardano-ledger-binary. Any suggestions?

In not so distant future we will be getting rid of Annotator, so we don't really need to worry about the ideal placement for this function.

@Lucsanszky Lucsanszky force-pushed the lucsanszky/txwits-consistency branch from 773b14a to 9d21290 Compare March 5, 2024 14:07
@Lucsanszky Lucsanszky marked this pull request as ready for review March 5, 2024 14:22
@Lucsanszky Lucsanszky force-pushed the lucsanszky/txwits-consistency branch 2 times, most recently from 671ee71 to f096291 Compare March 5, 2024 18:16
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

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

Perfect! 👍

@lehins lehins enabled auto-merge March 5, 2024 18:24
Which means:
* Remove `HKD`
* Use `MemoBytes`
* Replace `(Era era, NoThunks (Script era))` with `EraScript era`
@lehins lehins force-pushed the lucsanszky/txwits-consistency branch from f096291 to 43673d0 Compare March 5, 2024 20:50
@lehins lehins merged commit 5673494 into master Mar 5, 2024
16 checks passed
@neilmayhew neilmayhew deleted the lucsanszky/txwits-consistency branch March 8, 2024 21:07
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.

Make TxWits from Cardano.Ledger.Shelley.TxWits consistent with other eras
2 participants