Skip to content

Commit

Permalink
Use wasmapp.AllCapabilities()
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Feb 24, 2024
1 parent f7d7cd4 commit 69dfd12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"io"
"os"
"path/filepath"
"strings"

"github.com/CosmWasm/wasmd/x/wasm"
abci "github.com/cometbft/cometbft/abci/types"
Expand All @@ -29,6 +30,7 @@ import (
dbm "github.com/cometbft/cometbft-db"
"github.com/cometbft/cometbft/libs/log"

wasmapp "github.com/CosmWasm/wasmd/app"
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
tmos "github.com/cometbft/cometbft/libs/os"
Expand Down Expand Up @@ -350,7 +352,7 @@ func NewNoisApp(
if err != nil {
panic(fmt.Sprintf("error while reading wasm config: %s", err))
}
availableCapabilities := "iterator,staking,stargate,cosmwasm_1_1,cosmwasm_1_2,cosmwasm_1_3,cosmwasm_1_4"
availableCapabilities := strings.Join(wasmapp.AllCapabilities(), ",")

wasmOpts = append(wasmOpts, NoisGasRegisterOption())
app.WasmKeeper = wasmkeeper.NewKeeper(
Expand Down

0 comments on commit 69dfd12

Please sign in to comment.