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

Prefix Set encoding with tag 258 #4003

Merged
merged 9 commits into from
Jan 24, 2024

Conversation

lehins
Copy link
Collaborator

@lehins lehins commented Jan 23, 2024

Description

Starting with Conway we need to prefix all places with a tag where a Set is used when encoding

Original problem was reported in IntersectMBO/cardano-cli#567

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/switch-to-using-set-tag-in-conway branch 2 times, most recently from 80cfc23 to 006943a Compare January 23, 2024 22:29
Starting with Conway we need to prefix all places where a Set is used
@lehins lehins force-pushed the lehins/switch-to-using-set-tag-in-conway branch from 006943a to c757c8a Compare January 23, 2024 23:19
Copy link
Contributor

@teodanciu teodanciu left a comment

Choose a reason for hiding this comment

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

Looks good to me, but I wonder whether we need to change the cddl and if that could be related to the RoundTrip tests failures on CI

@lehins
Copy link
Collaborator Author

lehins commented Jan 24, 2024

I wonder whether we need to change the cddl and if that could be related to the RoundTrip tests failures on CI

Yes we do. It was a bit late for me last night to wait for the end of CI run.
@teodanciu Could you take a look at the last three commits?

@lehins lehins force-pushed the lehins/switch-to-using-set-tag-in-conway branch from 40ebfc3 to 89f59d2 Compare January 24, 2024 10:19
@lehins lehins enabled auto-merge January 24, 2024 10:47
Copy link
Contributor

@aniketd aniketd left a comment

Choose a reason for hiding this comment

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

Awesome! 🙌

@teodanciu
Copy link
Contributor

I wonder whether we need to change the cddl and if that could be related to the RoundTrip tests failures on CI

Yes we do. It was a bit late for me last night to wait for the end of CI run. @teodanciu Could you take a look at the last three commits?

I did, still looks good to me 👍

@lehins lehins force-pushed the lehins/switch-to-using-set-tag-in-conway branch from 89f59d2 to f26eab5 Compare January 24, 2024 11:40
@lehins lehins merged commit 53d93c0 into master Jan 24, 2024
11 of 12 checks passed
@neilmayhew neilmayhew deleted the lehins/switch-to-using-set-tag-in-conway branch March 8, 2024 21:07
rooooooooob added a commit to dcSpark/cardano-multiplatform-lib that referenced this pull request Mar 28, 2024
SebastienGllmt pushed a commit to dcSpark/cardano-multiplatform-lib that referenced this pull request May 1, 2024
* New Conway.cddl updates (cml-chain/cml-chain-wasm)

Includes:
* IntersectMBO/cardano-ledger#4003
* IntersectMBO/cardano-ledger#4178
* IntersectMBO/cardano-ledger#4055
* IntersectMBO/cardano-ledger#4117
* IntersectMBO/cardano-ledger#4040

TODO:

[ ] need to check how this affects the script data hash and test that
[ ] multi-era

* conway multi-era update + various fixes

* resolve merge conflict

* use conway costmodels for all eras (babbage costmdls found in alonzo on sancho testnet)

* IntoIter for NonemptySet<T>
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