diff --git a/version/command.go b/version/command.go index 163e6e5c7d2..d52a6966868 100644 --- a/version/command.go +++ b/version/command.go @@ -34,8 +34,7 @@ func NewVersionCommand() *cobra.Command { } // Extract and set extra information from the context - extraInfo := extraInfoFromContext(cmd) - verInfo.ExtraInfo = &extraInfo + verInfo.ExtraInfo = extraInfoFromContext(cmd) var ( bz []byte diff --git a/version/version.go b/version/version.go index b407f2b36e5..8f1f040d471 100644 --- a/version/version.go +++ b/version/version.go @@ -71,7 +71,7 @@ type Info struct { GoVersion string `json:"go" yaml:"go"` BuildDeps []buildDep `json:"build_deps" yaml:"build_deps"` CosmosSdkVersion string `json:"cosmos_sdk_version" yaml:"cosmos_sdk_version"` - ExtraInfo *ExtraInfo `json:"extra_info" yaml:"extra_info"` + ExtraInfo ExtraInfo `json:"extra_info,omitempty" yaml:"extra_info,omitempty"` } func NewInfo() Info {