Skip to content

Commit

Permalink
fix: fix init cmd build empty config file
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Feb 7, 2024
1 parent 851426d commit d6232c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
loggingconfig "github.com/forbole/juno/v5/logging/config"
nodeconfig "github.com/forbole/juno/v5/node/config"
parserconfig "github.com/forbole/juno/v5/parser/config"
"gopkg.in/yaml.v3"
)

var (
Expand Down Expand Up @@ -49,7 +50,7 @@ func DefaultConfig() Config {
}

func (c Config) GetBytes() ([]byte, error) {
return c.bytes, nil
return yaml.Marshal(c)
}

// ---------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit d6232c4

Please sign in to comment.