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

Introduce supplementary datums #640

Merged
merged 5 commits into from
Sep 20, 2024
Merged

Conversation

Jimbo4350
Copy link
Contributor

@Jimbo4350 Jimbo4350 commented Sep 16, 2024

Changelog

- description: |
    Introduce supplementary datums
  type:
  - feature        # introduces a new feature

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

@smelc
Copy link
Contributor

smelc commented Sep 17, 2024

cc @mmontin: is this something you would benefit from?

Comment on lines 1159 to 1161
-- Supplemental datums can be added to the transaction if the corresponding
-- datum hash exists at a input in that transaction.
data TxSupplementalData era where
Copy link
Contributor

Choose a reason for hiding this comment

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

Here we're using both plural forms of datum: data and datums. Maybe we should stick to one or the other?
This also applies to the name of the function convSupplementalDatums which consumes TxSupplementalData.

(ledger even has TxDats!?)

convSupplementalDatums sbe (TxSupplementalData datums) =
shelleyBasedEraConstraints sbe $
L.TxDats $
Map.fromList
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Map.fromList
fromList

@Jimbo4350 Jimbo4350 force-pushed the jordan/introduce-supplementary-datums branch from 9e412ac to ecc1623 Compare September 18, 2024 13:56
@Jimbo4350 Jimbo4350 added this pull request to the merge queue Sep 20, 2024
Merged via the queue into main with commit 77c8b0d Sep 20, 2024
26 checks passed
@Jimbo4350 Jimbo4350 deleted the jordan/introduce-supplementary-datums branch September 20, 2024 18:15
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.

3 participants