Skip to content

Commit

Permalink
re-add wasm client store upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ash-burnt committed Oct 25, 2024
1 parent 4c19477 commit 7f0de62
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 7f0de62

Please sign in to comment.