@@ -2,7 +2,6 @@ package cmd
2
2
3
3
import (
4
4
"errors"
5
-
6
5
"io"
7
6
"os"
8
7
"path/filepath"
@@ -90,19 +89,8 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
90
89
func initAppConfig () (string , interface {}) {
91
90
// The following code snippet is just for reference.
92
91
93
- // WASMConfig defines configuration for the wasm module.
94
- type WASMConfig struct {
95
- // This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries
96
- QueryGasLimit uint64 `mapstructure:"query_gas_limit"`
97
-
98
- // Address defines the gRPC-web server to listen on
99
- LruSize uint64 `mapstructure:"lru_size"`
100
- }
101
-
102
92
type CustomAppConfig struct {
103
93
serverconfig.Config
104
-
105
- WASM WASMConfig `mapstructure:"wasm"`
106
94
}
107
95
108
96
// Optionally allow the chain developer to overwrite the SDK's default
@@ -125,19 +113,9 @@ func initAppConfig() (string, interface{}) {
125
113
126
114
customAppConfig := CustomAppConfig {
127
115
Config : * srvCfg ,
128
- WASM : WASMConfig {
129
- LruSize : 1 ,
130
- QueryGasLimit : 300000 ,
131
- },
132
116
}
133
117
134
- customAppTemplate := serverconfig .DefaultConfigTemplate + `
135
- [wasm]
136
- # This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries
137
- query_gas_limit = 300000
138
- # This is the number of wasm vm instances we keep cached in memory for speed-up
139
- # Warning: this is currently unstable and may lead to crashes, best to keep for 0 unless testing locally
140
- lru_size = 0`
118
+ customAppTemplate := serverconfig .DefaultConfigTemplate
141
119
142
120
return customAppTemplate , customAppConfig
143
121
}
0 commit comments