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

feat(storage): v2.1.0 improvements #156

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

milancermak
Copy link
Contributor

Additional improvements to List implementation.

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the new behavior?

  • Removing the custom StorageSize trait. It's replaced by Store::size since in v2.1.0 it doesn't require an arg anymore.

  • Using Poseidon hash instead of Pedersen (LegacyHash) since it's 10x cheaper.

Does this introduce a breaking change?

  • Yes
  • No

No easy migration path but I'm guessing no one's using it in prod yet. Since it's a breaking change, I did bump the package version to 0.2.0.

Other information

Also shortening the test_append_get_many test to go over less elements, should be about half as long while still testing the right behavior.

Copy link
Collaborator

@0xLucqs 0xLucqs left a comment

Choose a reason for hiding this comment

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

lgtm

@0xLucqs 0xLucqs merged commit 136602c into keep-starknet-strange:main Aug 10, 2023
3 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants