-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: app config and simapp (v1,v2) fixes #14209
Changes from 4 commits
95e848d
7d53ceb
1b566fb
2006601
527f082
e2ec990
f393e1c
b3a4c23
e8f19ab
351c942
7130073
fde91f6
77d27e1
ad7e4a4
46eb82a
4479d27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,7 +144,8 @@ func AppStateRandomizedFn( | |
accs []simtypes.Account, genesisTimestamp time.Time, appParams simtypes.AppParams, | ||
) (json.RawMessage, []simtypes.Account) { | ||
numAccs := int64(len(accs)) | ||
genesisState := NewDefaultGenesisState(cdc) | ||
// TODO - in case runtime.RegisterModules(...) is used, the genesis state of the module won't be reflected here | ||
genesisState := ModuleBasics.DefaultGenesis(cdc) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure how to avoid this. |
||
|
||
// generate a random amount of initial stake coins and a random initial | ||
// number of bonded accounts | ||
|
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.
Isn't this needed?
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 guess we need to set the module version map set for x/upgrade. But this should really be done somehow automatically with app config
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.
app_v2.go
already sets it, so this was overwritting it and not callingapp.UpgradeKeeper.SetModuleVersionMap(ctx, app.ModuleManager.GetVersionMap())
.Didn't run the integration tests locally, if you use runtime standalone it is indeed needed.
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.
What I'm saying is that app_v2.go shouldn't need to manually call it. Is there a clean way to make that happen? Doesn't need to be in this PR btw
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 see, let me check 👍🏾
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.
Because we need the store to be available, I have not found a clean way.