Skip to content

Commit

Permalink
fix: add app.toml configs for wasm (#7025)
Browse files Browse the repository at this point in the history
* add configs for wasm

* spacing

* switch to non-deprecated
  • Loading branch information
czarcas7ic authored Dec 6, 2023
1 parent 8214a60 commit 4ad5d5f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cmd/osmosisd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ import (

"github.com/CosmWasm/wasmd/x/wasm"
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"

"github.com/joho/godotenv"

Expand Down Expand Up @@ -427,6 +428,8 @@ func initAppConfig() (string, interface{}) {
OsmosisMempoolConfig OsmosisMempoolConfig `mapstructure:"osmosis-mempool"`

SidecarQueryServerConfig sqs.Config `mapstructure:"osmosis-sqs"`

Wasm wasmtypes.WasmConfig `mapstructure:"wasm"`
}

// Optionally allow the chain developer to overwrite the SDK's default
Expand All @@ -444,7 +447,7 @@ func initAppConfig() (string, interface{}) {

sqsConfig := sqs.DefaultConfig

OsmosisAppCfg := CustomAppConfig{Config: *srvCfg, OsmosisMempoolConfig: memCfg, SidecarQueryServerConfig: sqsConfig}
OsmosisAppCfg := CustomAppConfig{Config: *srvCfg, OsmosisMempoolConfig: memCfg, SidecarQueryServerConfig: sqsConfig, Wasm: wasmtypes.DefaultWasmConfig()}

OsmosisAppTemplate := serverconfig.DefaultConfigTemplate + `
###############################################################################
Expand Down Expand Up @@ -519,7 +522,11 @@ route-update-height-interval = "{{ .SidecarQueryServerConfig.Router.RouteUpdateH
# Whether to enable candidate route caching in Redis.
route-cache-enabled = "{{ .SidecarQueryServerConfig.Router.RouteCacheEnabled }}"
`
` + `
###############################################################################
### Wasm Configuration ###
###############################################################################
` + wasmtypes.DefaultConfigTemplate()

return OsmosisAppTemplate, OsmosisAppCfg
}
Expand Down

0 comments on commit 4ad5d5f

Please sign in to comment.