Skip to content

Commit

Permalink
upgrade handler 0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Apr 8, 2024
1 parent 4c135f3 commit 30521ed
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions app/upgrade.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
package app

import (
"context"

upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/cosmos/cosmos-sdk/types/module"
)

// const upgradeName = "0.2.0-beta.3"
const upgradeName = "0.2.4"

// RegisterUpgradeHandlers returns upgrade handlers
func (app *MinitiaApp) RegisterUpgradeHandlers(cfg module.Configurator) {}
func (app *MinitiaApp) RegisterUpgradeHandlers(cfg module.Configurator) {
app.UpgradeKeeper.SetUpgradeHandler(upgradeName,
func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
return fromVM, nil
},
)
}

0 comments on commit 30521ed

Please sign in to comment.