fix(runtime): PreBlocker getting overwritten if set as a baseapp option (#17944)

This commit is contained in:
Facundo Medica
2023-10-10 14:46:12 +00:00
committed by GitHub
parent ea0a9b2f5f
commit 3ac7c0effd
4 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ func NewSimApp(
// However, when registering a module manually (i.e. that does not support app wiring), the module version map
// must be set manually as follow. The upgrade module will de-duplicate the module version map.
//
// app.SetInitChainer(func(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain {
// app.SetInitChainer(func(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) {
// app.UpgradeKeeper.SetModuleVersionMap(ctx, app.ModuleManager.GetVersionMap())
// return app.App.InitChainer(ctx, req)
// })