From 3957b6e2fc9909a9bb7ba948ac28ed233772a927 Mon Sep 17 00:00:00 2001 From: Danilo Pantani Date: Wed, 11 Sep 2024 11:48:18 +0200 Subject: [PATCH] fix the app config toml --- wasm/services/scaffolder/wasm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wasm/services/scaffolder/wasm.go b/wasm/services/scaffolder/wasm.go index 2e4f2788..198b044a 100644 --- a/wasm/services/scaffolder/wasm.go +++ b/wasm/services/scaffolder/wasm.go @@ -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 @@ -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),