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

Fixing the Mint field translation. #3398

Merged
merged 1 commit into from
Apr 29, 2023

Conversation

lehins
Copy link
Collaborator

@lehins lehins commented Apr 29, 2023

It was incorrectly fixed in 21825f1

This is due to the fact that the Map in Plutus is not like a Map in Haskell's containers library. Plutus Map is an assoc Map that is based on lists and the order of elements actually matters. So, the original fix placed the ADA value at the end, while the original and correct implementation, as in this PR, places it at the beginning.

Description

Add your description here, if it fixes a particular issue please provide a
link
to the issue.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • Any changes are noted in the CHANGELOG.md for affected package
  • The version bounds in .cabal files are updated
  • 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 mentioned this pull request Apr 29, 2023
8 tasks
It was incorrectly fixed in 21825f1

This is due to the fact that the Map in Plutus is not like a Map in
Haskell's containers library. Plutus Map is an assoc Map that is based
on lists and the order of elements actually matters. So, the original
fix placed the ADA value at the end, while the original and correct
implementation, as in this commit, places it at the beginning.
@lehins lehins force-pushed the lehins/fix-mint-field-translation-to-plutus branch from 2f3a747 to dc446d9 Compare April 29, 2023 13:51
@lehins lehins enabled auto-merge April 29, 2023 13:51
@lehins lehins merged commit b00e286 into master Apr 29, 2023
@iohk-bors iohk-bors bot deleted the lehins/fix-mint-field-translation-to-plutus branch April 29, 2023 15:41
@lehins lehins mentioned this pull request Jul 21, 2023
9 tasks
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