@@ -96,19 +96,8 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
96
96
func initAppConfig () (string , interface {}) {
97
97
// The following code snippet is just for reference.
98
98
99
- // WASMConfig defines configuration for the wasm module.
100
- type WASMConfig struct {
101
- // This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries
102
- QueryGasLimit uint64 `mapstructure:"query_gas_limit"`
103
-
104
- // Address defines the gRPC-web server to listen on
105
- LruSize uint64 `mapstructure:"lru_size"`
106
- }
107
-
108
99
type CustomAppConfig struct {
109
100
serverconfig.Config
110
-
111
- WASM WASMConfig `mapstructure:"wasm"`
112
101
}
113
102
114
103
// Optionally allow the chain developer to overwrite the SDK's default
@@ -131,19 +120,9 @@ func initAppConfig() (string, interface{}) {
131
120
132
121
customAppConfig := CustomAppConfig {
133
122
Config : * srvCfg ,
134
- WASM : WASMConfig {
135
- LruSize : 1 ,
136
- QueryGasLimit : 300000 ,
137
- },
138
123
}
139
124
140
- customAppTemplate := serverconfig .DefaultConfigTemplate + `
141
- [wasm]
142
- # This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries
143
- query_gas_limit = 300000
144
- # This is the number of wasm vm instances we keep cached in memory for speed-up
145
- # Warning: this is currently unstable and may lead to crashes, best to keep for 0 unless testing locally
146
- lru_size = 0`
125
+ customAppTemplate := serverconfig .DefaultConfigTemplate
147
126
148
127
return customAppTemplate , customAppConfig
149
128
}
0 commit comments