Skip to content

Commit

Permalink
write data to files
Browse files Browse the repository at this point in the history
  • Loading branch information
arturrez committed Oct 10, 2024
1 parent fc97806 commit 977cf8c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmd/nodecmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 977cf8c

Please sign in to comment.