Skip to content

Commit

Permalink
fix the app config toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Sep 11, 2024
1 parent dae5643 commit 3957b6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wasm/services/scaffolder/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ func (s Scaffolder) AddWasm(
return xgenny.SourceModification{}, err
}

configTOML, err := s.chain.ConfigTOMLPath()
appTOMLPath, err := s.chain.AppTOMLPath()
if err != nil {
return xgenny.SourceModification{}, err
}
if _, err := os.Stat(configTOML); os.IsNotExist(err) {
if _, err := os.Stat(appTOMLPath); os.IsNotExist(err) {
s.session.Printf(`Cannot find the chain config. If the chain %[1]v is not initialized yet, run "%[1]vd init" or "ignite chain serve" to init the chain.
After, run the "ignite wasm config" command to add the wasm config
Expand All @@ -115,7 +115,7 @@ After, run the "ignite wasm config" command to add the wasm config
} else if err == nil {
// Add wasm options to the chain config.
if err := config.AddWasm(
configTOML,
appTOMLPath,
config.WithSimulationGasLimit(scaffoldingOpts.simulationGasLimit),
config.WithSmartQueryGasLimit(scaffoldingOpts.smartQueryGasLimit),
config.WithMemoryCacheSize(scaffoldingOpts.memoryCacheSize),
Expand Down

0 comments on commit 3957b6e

Please sign in to comment.