Documentation
¶
Index ¶
Constants ¶
View Source
const UpgradeName = "v2.1.0"
Variables ¶
View Source
var Upgrade = upgrades.Upgrade{ UpgradeName: UpgradeName, CreateUpgradeHandler: func(mm *module.Manager, cfg module.Configurator, clientKeeper clientkeeper.Keeper) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { params := clientKeeper.GetParams(ctx) hasWasmClient := false for _, client := range params.AllowedClients { if client == ibcwasmtypes.Wasm { hasWasmClient = true break } } if !hasWasmClient { params.AllowedClients = append(params.AllowedClients, ibcwasmtypes.Wasm) clientKeeper.SetParams(ctx, params) } return mm.RunMigrations(ctx, cfg, fromVM) } }, StoreUpgrades: types.StoreUpgrades{ Added: []string{ibcwasmtypes.ModuleName}, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.