Skip to content

Commit fdd41c1

Browse files
committed
1 parent 2cb829a commit fdd41c1

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

cmd/fnsad/cmd/root.go

+1-22
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,8 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
9696
func initAppConfig() (string, interface{}) {
9797
// The following code snippet is just for reference.
9898

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-
10899
type CustomAppConfig struct {
109100
serverconfig.Config
110-
111-
WASM WASMConfig `mapstructure:"wasm"`
112101
}
113102

114103
// Optionally allow the chain developer to overwrite the SDK's default
@@ -131,19 +120,9 @@ func initAppConfig() (string, interface{}) {
131120

132121
customAppConfig := CustomAppConfig{
133122
Config: *srvCfg,
134-
WASM: WASMConfig{
135-
LruSize: 1,
136-
QueryGasLimit: 300000,
137-
},
138123
}
139124

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
147126

148127
return customAppTemplate, customAppConfig
149128
}

0 commit comments

Comments
 (0)