fix: call RunMigrations with correct fromVM

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
Lorenz Herzberger 2024-06-05 14:56:51 +02:00
parent 1699323af7
commit fc29bc3bb1
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A

View File

@ -997,8 +997,6 @@ func (app *App) setupUpgradeHandlers() {
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
})
app.UpgradeKeeper.SetUpgradeHandler("v0.10.0", func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
// Set versions to the latest ConsensusVersion in the VersionMap.
fromVM[assetmoduletypes.ModuleName] = assetmodule.AppModule{}.ConsensusVersion()
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
})
}