From fcf1c7eeed45dbd3421aea9197a0445dd0bf94d1 Mon Sep 17 00:00:00 2001 From: Ash <96692350+ash-burnt@users.noreply.github.com> Date: Fri, 4 Oct 2024 15:51:02 +0100 Subject: [PATCH] IBCWasm Store Added to Upgrade (#270) --- app/upgrades.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/upgrades.go b/app/upgrades.go index e7b6c9bd..6ff8bab1 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -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" @@ -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))