Skip to content

Commit

Permalink
Update initialize.go
Browse files Browse the repository at this point in the history
  • Loading branch information
rezbera committed Feb 3, 2025
1 parent 09f9ac4 commit 5669e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/commands/initialize/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func Init(
config *cmtconfig.Config,
mnemonic string,
initHeight int64,
overwrite bool,
overwriteGenesis bool,
defaultDenom string,
appGenesisState map[string]json.RawMessage,
printDestination io.Writer,
Expand All @@ -200,7 +200,7 @@ func Init(
genFile := config.GenesisFile()
// use os.Stat to check if the file exists
_, err = os.Stat(genFile)
if !overwrite && !os.IsNotExist(err) {
if !overwriteGenesis && !os.IsNotExist(err) {
return fmt.Errorf("genesis.json file already exists: %v", genFile)
}

Expand Down

0 comments on commit 5669e4a

Please sign in to comment.