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

Add new_with_penumbra_prefixes to the TempStorageExt #4811

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

zbuc
Copy link
Member

@zbuc zbuc commented Aug 15, 2024

Describe your changes

This adds a new_with_penumbra_prefixes function to the TempStorageExt trait, so that a TempStorage can be instantiated with the same storage prefixes that a real chain would use. It was added to the extension trait to avoid polluting the implementation inside the cnidarium crate with penumbra-specific details.

All existing tests have been changed to use the correct prefixes.

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    Only affects tests

Copy link
Contributor

@conorsch conorsch left a comment

Choose a reason for hiding this comment

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

Changes are confined to test modules, so no concerns about contaminating types for external consumers. 👍

@conorsch conorsch merged commit c4ea63f into main Aug 20, 2024
13 checks passed
@conorsch conorsch deleted the test_storage_prefix_fix branch August 20, 2024 16:07
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