Skip to content

Commit

Permalink
IBCWasm Store Added to Upgrade (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
ash-burnt authored Oct 4, 2024
1 parent 9993434 commit fcf1c7e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"context"
"fmt"

ibcwasmtypes "github.com/cosmos/ibc-go/modules/light-clients/08-wasm/types"

storetypes "cosmossdk.io/store/types"
upgradetypes "cosmossdk.io/x/upgrade/types"

Expand All @@ -23,7 +25,11 @@ func (app *WasmApp) RegisterUpgradeHandlers() {

if upgradeInfo.Name == UpgradeName {
if !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := storetypes.StoreUpgrades{}
storeUpgrades := storetypes.StoreUpgrades{
Added: []string{
ibcwasmtypes.ModuleName,
},
}

app.Logger().Info("setting upgrade store loaders")
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades))
Expand Down

0 comments on commit fcf1c7e

Please sign in to comment.