From 977cf8c64b8068df8786bbec31c662dfb8276b45 Mon Sep 17 00:00:00 2001 From: Artur Reznikov Date: Thu, 10 Oct 2024 13:33:31 -0700 Subject: [PATCH] write data to files --- cmd/nodecmd/create.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmd/nodecmd/create.go b/cmd/nodecmd/create.go index 1e24a2114..0b28afbea 100644 --- a/cmd/nodecmd/create.go +++ b/cmd/nodecmd/create.go @@ -285,11 +285,20 @@ func createNodes(cmd *cobra.Command, args []string) error { if err != nil { return err } + if _, err := genesisTmpFile.Write([]byte(constants.EtnaDevnetGenesisData)); err != nil { + return err + } + genesisTmpFile.Close() genesisPath = genesisTmpFile.Name() + upgradeTmpFile, err := os.CreateTemp("", "upgrade") if err != nil { return err } + if _, err := upgradeTmpFile.Write([]byte(constants.EtnaDevnetUpgradeData)); err != nil { + return err + } + upgradeTmpFile.Close() upgradePath = upgradeTmpFile.Name() defer func() {