Skip to content

Commit

Permalink
Add cosmwasm_2_1 capability
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Jul 5, 2024
1 parent 5657a01 commit d793a43
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 d793a43

Please sign in to comment.