Skip to content

Commit

Permalink
add wasm to upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jhernandezb committed Jan 27, 2022
1 parent d8eff8b commit 63b7c51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package app
import (
"fmt"

"github.com/CosmWasm/wasmd/x/wasm"
store "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
Expand Down Expand Up @@ -53,7 +54,7 @@ func (app *App) RegisterUpgradeHandlers(cfg module.Configurator) {

if upgradeInfo.Name == upgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := store.StoreUpgrades{
Added: []string{authz.ModuleName},
Added: []string{authz.ModuleName, wasm.ModuleName},
}
// configure store loader that checks if version == upgradeHeight and applies store upgrades
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades))
Expand Down

0 comments on commit 63b7c51

Please sign in to comment.