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

Change type of mintedTxBodyL to PolicyID #3930

Merged
merged 3 commits into from
Dec 14, 2023
Merged

Conversation

lehins
Copy link
Collaborator

@lehins lehins commented Dec 14, 2023

Description

Besides changing type of mintedTxBodyL to PolicyID this PR also:

  • Adds new helper functions decodeListLikeT and decodeListLike
  • Changes the first argument of decodeRecordSum and Summonds from String to Text for consistency.
  • Removes a bunch of unnecessary exports from Cardano.Ledger.Babbage.TxBody

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

@lehins lehins force-pushed the lehins/minted-to-policyId branch 2 times, most recently from 71b9696 to f0e0874 Compare December 14, 2023 15:23
* `decodeListLikeT` and `decodeListLike` are useful for any list like
  type that cannot use Coders.
* Change the first argument of `decodeRecordSum` to `Text` for consistency with
  `decodeRecordNamed` and the `Plain.decodeRecordSum
* Also change argument of `Summonds` from `String` to `Text` for
  consistency and because it uses `decodeRecordSum`
@lehins lehins force-pushed the lehins/minted-to-policyId branch from f0e0874 to 354589a Compare December 14, 2023 16:01
Copy link
Contributor

@Soupstraw Soupstraw left a comment

Choose a reason for hiding this comment

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

LGTM

@lehins lehins enabled auto-merge December 14, 2023 17:47
@lehins lehins merged commit 27218be into master Dec 14, 2023
10 of 21 checks passed
@iohk-bors iohk-bors bot deleted the lehins/minted-to-policyId branch December 14, 2023 18:05
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