Skip to content

Commit

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

* spacing

* switch to non-deprecated

(cherry picked from commit 4ad5d5f)

Co-authored-by: Adam Tucker <adam@osmosis.team>
  • Loading branch information
mergify[bot] and czarcas7ic authored Dec 6, 2023
1 parent dfe4e38 commit 53602a0
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 53602a0

Please sign in to comment.