Skip to content

Commit

Permalink
fix: store upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
emidev98 committed Sep 5, 2023
1 parent 9f014ca commit 720da1a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,15 @@ func NewTerraApp(
},
}
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades))
} else if upgradeInfo.Name == terraappconfig.Upgrade2_5 && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := storetypes.StoreUpgrades{
Added: []string{
consensusparamtypes.StoreKey,
crisistypes.StoreKey,
pobtype.StoreKey,
},

Check warning on line 959 in app/app.go

View check run for this annotation

Codecov / codecov/patch

app/app.go#L954-L959

Added lines #L954 - L959 were not covered by tests
}
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades))

Check warning on line 961 in app/app.go

View check run for this annotation

Codecov / codecov/patch

app/app.go#L961

Added line #L961 was not covered by tests
}

if loadLatest {
Expand Down

0 comments on commit 720da1a

Please sign in to comment.