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

Rename Cardano.Ledger.Mary.Value.{insert,lookup} #3054

Merged
merged 2 commits into from
Sep 27, 2022

Conversation

aniketd
Copy link
Contributor

@aniketd aniketd commented Sep 27, 2022

insert and lookup are very common functions from containers and even base. They need to be
rename in order to be more descriptive.

  • Rename insert to inserMultiAsset, and lookup to lookupMultiAsset.
  • Deprecate insert and lookup in favor of the new alternatives.

Closes #3047

Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

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

this looks great, thank you @aniketd ! let's leave the issue number (#3047) in the PR notes (and use "closes" or "resolves"). and let's also update the change log.

@aniketd
Copy link
Contributor Author

aniketd commented Sep 27, 2022

Thanks @JaredCorduan 🙂 . I have made the updates. 👍

Copy link
Contributor

@JaredCorduan JaredCorduan 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!

`insert` and `lookup` are very common functions from
`containers` and even `base`. They need to be
rename in order to be more descriptive.

- Rename `insert` to `inserMultiAsset`, and
  `lookup` to `lookupMultiAsset`.
- Deprecate `insert` and `lookup` in favor of the
  new alternatives.
@JaredCorduan JaredCorduan merged commit 677bf58 into IntersectMBO:master Sep 27, 2022
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.

Rename Cardano.Ledger.Mary.Value.insert/lookup
2 participants