mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
Pretty print JSON
This commit is contained in:
@ -31,7 +31,7 @@ type GenesisDoc struct {
|
||||
|
||||
// Utility method for saving GenensisDoc as JSON file.
|
||||
func (genDoc *GenesisDoc) SaveAs(file string) error {
|
||||
genDocBytes := wire.JSONBytes(genDoc)
|
||||
genDocBytes := wire.JSONBytesPretty(genDoc)
|
||||
return WriteFile(file, genDocBytes, 0644)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user