Skip to content

Commit 1ffb082

Browse files
Xingchen LiaoCyson
andauthored
Add 1.0.5beta upgrade handler (#65)
Co-authored-by: Cyson <[email protected]>
1 parent 05dd9ce commit 1ffb082

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/upgrades.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ const Upgrade103 = "1.0.3beta"
2222
// this will introduce the oracle module as well
2323
const Upgrade104 = "1.0.4beta"
2424

25+
// 1.0.5beta
26+
const Upgrade105 = "1.0.5beta"
27+
2528
func (app App) RegisterUpgradeHandlers() {
2629
app.UpgradeKeeper.SetUpgradeHandler(IgniteCLIRemovalUpgradeHandler, func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
2730
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
@@ -38,4 +41,7 @@ func (app App) RegisterUpgradeHandlers() {
3841
app.UpgradeKeeper.SetUpgradeHandler(Upgrade104, func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
3942
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
4043
})
44+
app.UpgradeKeeper.SetUpgradeHandler(Upgrade105, func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
45+
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
46+
})
4147
}

x/oracle/keeper/migrations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (m Migrator) Migrate2to3(ctx sdk.Context) error {
3636
return nil
3737
}
3838

39-
// Migrate3to3 migrates from version 3 to 4
39+
// Migrate3to4 migrates from version 3 to 4
4040
func (m Migrator) Migrate3to4(ctx sdk.Context) error {
4141
// we need to migrate the miss counters to be stored as VotePenaltyCounter to introduce abstain count logic
4242
store := ctx.KVStore(m.keeper.storeKey)

0 commit comments

Comments
 (0)