Skip to content

Commit

Permalink
Merge pull request #1925 from CosmWasm/co/2.1-capability
Browse files Browse the repository at this point in the history
Add `cosmwasm_2_1` capability
  • Loading branch information
chipshort authored Jul 8, 2024
2 parents 5657a01 + d793a43 commit 745adca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions x/wasm/keeper/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ func BuiltInCapabilities() []string {
"cosmwasm_1_3",
"cosmwasm_1_4",
"cosmwasm_2_0",
"cosmwasm_2_1",
}
}
3 changes: 2 additions & 1 deletion x/wasm/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ import (
var hackatomWasm []byte

var AvailableCapabilities = []string{
"iterator", "staking", "stargate", "cosmwasm_1_1", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0",
"iterator", "staking", "stargate", "cosmwasm_1_1", "cosmwasm_1_2", "cosmwasm_1_3",
"cosmwasm_1_4", "cosmwasm_2_0", "cosmwasm_2_1",
}

func TestNewKeeper(t *testing.T) {
Expand Down
5 changes: 4 additions & 1 deletion x/wasm/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ func setupTest(t *testing.T) testData {
InstantiateDefaultPermission: v2.AccessTypeEverybody,
}

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"})
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", "cosmwasm_2_1",
})
encConf := keeper.MakeEncodingConfig(t)
queryRouter := baseapp.NewGRPCQueryRouter()
serviceRouter := baseapp.NewMsgServiceRouter()
Expand Down

0 comments on commit 745adca

Please sign in to comment.