Skip to content

Commit

Permalink
Merge pull request #598 from notional-labs/add-upgrade-handler
Browse files Browse the repository at this point in the history
add upgrade handler
  • Loading branch information
catShaark authored May 10, 2023
2 parents b489d6e + 4da2d90 commit e26ac3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,13 @@ func (app *DigApp) setupUpgradeHandlers(ICAModule ica.AppModule) { //nolint:gocr
v2.UpgradeUnlockCoinName,
v2.CreateUpgradeHandler(app.mm, app.configurator, &app.AccountKeeper, &app.StakingKeeper, &bankBaseKeeper, ICAModule),
)

app.UpgradeKeeper.SetUpgradeHandler(
"ibcfix",
func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
return fromVM, nil
},
)
}

// Name returns the name of the App.
Expand Down

0 comments on commit e26ac3d

Please sign in to comment.