Skip to content

Commit 745adca

Browse files
authored
Merge pull request #1925 from CosmWasm/co/2.1-capability
Add `cosmwasm_2_1` capability
2 parents 5657a01 + d793a43 commit 745adca

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

x/wasm/keeper/capabilities.go

+1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ func BuiltInCapabilities() []string {
1616
"cosmwasm_1_3",
1717
"cosmwasm_1_4",
1818
"cosmwasm_2_0",
19+
"cosmwasm_2_1",
1920
}
2021
}

x/wasm/keeper/keeper_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ import (
4444
var hackatomWasm []byte
4545

4646
var AvailableCapabilities = []string{
47-
"iterator", "staking", "stargate", "cosmwasm_1_1", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0",
47+
"iterator", "staking", "stargate", "cosmwasm_1_1", "cosmwasm_1_2", "cosmwasm_1_3",
48+
"cosmwasm_1_4", "cosmwasm_2_0", "cosmwasm_2_1",
4849
}
4950

5051
func TestNewKeeper(t *testing.T) {

x/wasm/module_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ func setupTest(t *testing.T) testData {
6363
InstantiateDefaultPermission: v2.AccessTypeEverybody,
6464
}
6565

66-
ctx, keepers := keeper.CreateTestInput(t, false, []string{"iterator", "staking", "stargate", "cosmwasm_1_1", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0"})
66+
ctx, keepers := keeper.CreateTestInput(t, false, []string{
67+
"iterator", "staking", "stargate", "cosmwasm_1_1", "cosmwasm_1_2", "cosmwasm_1_3",
68+
"cosmwasm_1_4", "cosmwasm_2_0", "cosmwasm_2_1",
69+
})
6770
encConf := keeper.MakeEncodingConfig(t)
6871
queryRouter := baseapp.NewGRPCQueryRouter()
6972
serviceRouter := baseapp.NewMsgServiceRouter()

0 commit comments

Comments
 (0)