-
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
ADR 004 Geneis Migration #5589
ADR 004 Geneis Migration #5589
Conversation
@@ -46,15 +46,15 @@ type ( | |||
|
|||
BaseAccount struct { | |||
Address sdk.AccAddress `json:"address" yaml:"address"` | |||
Coins sdk.Coins `json:"coins" yaml:"coins"` | |||
Coins sdk.Coins `json:"coins,omitempty" yaml:"coins,omitempty"` |
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.
I've decided to add omitempty
here to avoid having to literally copy the entire file solely to remove a single field.
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.
Like this move!
// it to v0.39 x/bank genesis state. The migration includes: | ||
// | ||
// - Moving balances from x/auth to x/bank genesis state. | ||
func Migrate(bankGenState v038bank.GenesisState, authGenState v038auth.GenesisState) GenesisState { |
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.
Do we need to ensure that this Migrate
runs before auth.Migrate
? Is there anything that needs to be done to ensure that?
"github.com/cosmos/cosmos-sdk/x/genutil" | ||
) | ||
|
||
func Migrate(appState genutil.AppMap) genutil.AppMap { |
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.
Thats done here I see.
Part III (final) PR of #5572 -- genesis migration for ADR 004 slated for v0.39:
x/auth
genesis state.x/bank
.For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)