Skip to content

Commit

Permalink
Merge pull request #201 from Fairblock/fix-missing-upgrade-handler
Browse files Browse the repository at this point in the history
Add missing v0.8.2-0.8.3 upgrade handler
  • Loading branch information
p0p3yee authored Oct 18, 2024
2 parents d171a18 + ee0c2e5 commit 4c6ed22
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,24 @@ func New(

app.sm.RegisterStoreDecoders()

app.UpgradeKeeper.SetUpgradeHandler(
"v0.8.2-to-0.8.3-release",
func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {

fromVM[capabilitytypes.ModuleName] = capability.AppModule{}.ConsensusVersion()
fromVM[peptypes.ModuleName] = pepmodule.AppModule{}.ConsensusVersion()
fromVM[keysharemoduletypes.ModuleName] = keysharemodule.AppModule{}.ConsensusVersion()
fromVM[ibcmodule.AppModule{}.Name()] = ibcmodule.AppModule{}.ConsensusVersion()
fromVM[ibcfeetypes.ModuleName] = ibcfeemodule.AppModule{}.ConsensusVersion()
fromVM[wasmtypes.ModuleName] = wasm.AppModule{}.ConsensusVersion()
fromVM[transfertypes.ModuleName] = transfer.AppModule{}.ConsensusVersion()
fromVM[interchainaccountstypes.ModuleName] = interchainaccountsmodule.AppModule{}.ConsensusVersion()
// 07-tendermint, 06-solomachine

return app.ModuleManager.RunMigrations(ctx, app.Configurator(), fromVM)
},
)

app.UpgradeKeeper.SetUpgradeHandler(
"v0.8.3-to-0.9.0-release",
func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
Expand Down

0 comments on commit 4c6ed22

Please sign in to comment.