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

Fixes bug were migration targeted legacy parameters at the wrong store key prefix #21

Merged

Conversation

nddeluca
Copy link
Member

@nddeluca nddeluca commented May 2, 2023

No description provided.

key location; should have been using the params module store keys when
creating a subspace;
Comment on lines 24 to 30
paramstore := paramtypes.NewSubspace(
cdc,
legacyAmino,
storeKey,
transientKey,
paramStoreKey,
paramStoreTKey,
types.ModuleName,
).WithKeyTable(v2types.ParamKeyTable())
Copy link
Member

Choose a reason for hiding this comment

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

Double checked the key usage, seems correct:

  • NewSubspace is always called with the paramskeeper's storekey and transient key
  • Only module name is different for NewSubspace with each module specific subspace
  • Module storeKey is only used for non-params store.

@nddeluca nddeluca merged commit 76790fb into kava-release-v0.21.x May 2, 2023
DracoLi pushed a commit that referenced this pull request Jun 18, 2023
#21)

key location; should have been using the params module store keys when
creating a subspace;
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.

3 participants