mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 22:45:45 +00:00
fix: call RunMigrations with correct fromVM
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
1699323af7
commit
fc29bc3bb1
@ -997,8 +997,6 @@ func (app *App) setupUpgradeHandlers() {
|
|||||||
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
|
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) {
|
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)
|
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user