Skip to content

Commit

Permalink
fix prune command
Browse files Browse the repository at this point in the history
  • Loading branch information
phamminh0811 committed May 14, 2024
1 parent 4d5f770 commit 6cb802e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/terrad/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (a appCreator) newApp(logger log.Logger, db dbm.DB, traceStore io.Writer, a
chainID := cast.ToString(appOpts.Get(flags.FlagChainID))
if chainID == "" {
// fallback to genesis chain-id
genDocFile := filepath.Join(homeDir, cast.ToString(appOpts.Get("genesis_file")))
genDocFile := filepath.Join(homeDir, "config", "genesis.json")
appGenesis, err := tmtypes.GenesisDocFromFile(genDocFile)
if err != nil {
panic(err)
Expand Down

0 comments on commit 6cb802e

Please sign in to comment.