mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 11:45:18 +00:00
use MarshalJSONIndent for init files. closes #1506
This commit is contained in:
@@ -41,7 +41,7 @@ func (genDoc *GenesisDoc) AppState() json.RawMessage {
|
||||
|
||||
// SaveAs is a utility method for saving GenensisDoc as a JSON file.
|
||||
func (genDoc *GenesisDoc) SaveAs(file string) error {
|
||||
genDocBytes, err := cdc.MarshalJSON(genDoc)
|
||||
genDocBytes, err := cdc.MarshalJSONIndent(genDoc, "", " ")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user