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

pallet-example-basic: Missing Hooks #6701

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rainbow-promise
Copy link

Resolves #6398

Proposed Implementation

  • pre_upgrade: Retrieve and assert the on-chain storage version, returning an empty Vec.
  • on_runtime_upgrade: Clear all storage items and raise the on-chain StorageVersion to 1.
  • post_upgrade: Assert the new on-chain storage version.

Notes

The try-state hook validates invariants in the storage items, as the pallet contains trivial logic this will be left unimplemented()

@cla-bot-2021
Copy link

cla-bot-2021 bot commented Nov 28, 2024

User @rainbow-promise, please sign the CLA here.

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.

Pallet-examples: Add missing hooks
1 participant