Skip to content

Commit

Permalink
feat: Add version field to ContributoorConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mattevans committed Dec 11, 2024
1 parent 5e9ab9b commit 4a5db54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/sentry/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
)

var (
version = "0.0.1"
cfgFile string
log = logrus.New()
)

type ContributoorConfig struct {
Version string `yaml:"version"`
ContributoorDirectory string `yaml:"contributoorDirectory"`
Network *NetworkConfig `yaml:"network"`
}
Expand Down Expand Up @@ -44,7 +44,7 @@ var rootCmd = &cobra.Command{
"config_path": config.ContributoorDirectory,
"network_name": config.Network.Name.Value,
"beacon_address": config.Network.BeaconNodeAddress.Value,
"version": version,
"version": config.Version,
})

logCtx.Info("Starting sentry...")
Expand Down

0 comments on commit 4a5db54

Please sign in to comment.