-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix: add params migration #14992
fix: add params migration #14992
Conversation
UPGRADING.md
Outdated
|
||
Cosmos SDK modules now store their parameters directly in its repective modules. In order to migrate these modules, you need to add the following when instantiating the params module in your `app.go`: | ||
|
||
```go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could improve https://github.com/cosmos/cosmos-sdk/blob/3c53870/simapp/upgrades.go instead?
Trying something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried something in 5dff820, wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@julienrbrt LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change
5dff820
to
c18758d
Compare
4c58c8b
to
dc620a2
Compare
Thanks for all your work on this @julienrbrt, much appreciated! I think the last of the changes for x/auth migrations should fix the issue seen here: https://github.com/cosmos/ibc-go/actions/runs/4163041439/jobs/7202936700. Can rerun that workflow as soon as this hits |
var ParamsKey = []byte{0x01} | ||
var ParamsKey = []byte{0x00} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well this is concerning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need way better testing on migrations. This is too close to a release
(cherry picked from commit 0f99829) # Conflicts: # UPGRADING.md # simapp/app.go # simapp/upgrades.go
Co-authored-by: Julien Robert <[email protected]>
Description
cc @alexanderbez
Now migration from simapp 46 to simapp 47 works.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change