diff --git a/CHANGELOG.md b/CHANGELOG.md index 997e8c8870e..d175ce3009e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * [#8682](https://github.com/osmosis-labs/osmosis/pull/8682) chore: bump cosmwasm-optimizer * [#8734](https://github.com/osmosis-labs/osmosis/pull/8734) chore: update cosmwasm vm +* [#8764](https://github.com/osmosis-labs/osmosis/pull/8764) chore: add cosmwasm 1_3 feature ### Config diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index d33858287a4..9f4155ca824 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -574,17 +574,8 @@ func (appKeepers *AppKeepers) InitNormalKeepers( // if we want to allow any custom callbacks // The last arguments can contain custom message handlers, and custom query handlers, // if we want to allow any custom callbacks - supportedFeatures := []string{ - "iterator", - "staking", - "stargate", - "osmosis", - "cosmwasm_1_1", - "cosmwasm_1_2", - "cosmwasm_1_4", - "cosmwasm_2_0", - "cosmwasm_2_1", - } + wasmCapabilities := wasmkeeper.BuiltInCapabilities() + wasmCapabilities = append(wasmCapabilities, "osmosis") wasmOpts = append(owasm.RegisterCustomPlugins(appKeepers.BankKeeper, appKeepers.TokenFactoryKeeper), wasmOpts...) wasmOpts = append(owasm.RegisterStargateQueries(*bApp.GRPCQueryRouter(), appCodec), wasmOpts...) @@ -605,7 +596,7 @@ func (appKeepers *AppKeepers) InitNormalKeepers( bApp.GRPCQueryRouter(), wasmDir, wasmConfig, - supportedFeatures, + wasmCapabilities, authtypes.NewModuleAddress(govtypes.ModuleName).String(), wasmOpts..., )