From 3d4e942fde48cb2859cedf10ccadcb0536e12206 Mon Sep 17 00:00:00 2001 From: artpav <19916123+artemijspavlovs@users.noreply.github.com> Date: Wed, 10 Jul 2024 13:31:31 +0300 Subject: [PATCH] chore: add roller home directory to roller.toml after initialization (#811) --- cmd/rollapp/init/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/rollapp/init/main.go b/cmd/rollapp/init/main.go index 4a23c1c2..eef2b80f 100644 --- a/cmd/rollapp/init/main.go +++ b/cmd/rollapp/init/main.go @@ -236,6 +236,13 @@ func runInit(cmd *cobra.Command, args []string, configArchivePath string) error return err } + rollerConfigFilePath := filepath.Join(utils.GetRollerRootDir(), "roller.toml") + err = global_utils.UpdateFieldInToml(rollerConfigFilePath, "home", utils.GetRollerRootDir()) + if err != nil { + fmt.Println("failed to add home to roller.toml: ", err) + return err + } + // 20240607 genesis is generated using the genesis-creator // err = initializeRollappGenesis(initConfig) // if err != nil {