Skip to content

Commit

Permalink
fixup: Respond to review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
marun committed Aug 13, 2024
1 parent ac3c6bb commit bd85c1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions vms/example/xsvm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Available Commands:
help Help about any command
issue Issues transactions
version Prints out the version
versionjson Prints out the version in json format
Flags:
-h, --help help for xsvm
Expand Down
5 changes: 3 additions & 2 deletions vms/example/xsvm/cmd/versionjson/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ import (

"github.com/spf13/cobra"

"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/utils/constants"
"github.com/ava-labs/avalanchego/version"
"github.com/ava-labs/avalanchego/vms/example/xsvm"
)

type vmVersions struct {
Name string `json:"name"`
VMID string `json:"vmid"`
VMID ids.ID `json:"vmid"`
Version *version.Semantic `json:"version"`
RPCChainVM uint64 `json:"rpcchainvm"`
}
Expand All @@ -32,7 +33,7 @@ func Command() *cobra.Command {
func versionFunc(*cobra.Command, []string) error {
versions := vmVersions{
Name: constants.XSVMName,
VMID: constants.XSVMID.String(),
VMID: constants.XSVMID,
Version: xsvm.Version,
RPCChainVM: uint64(version.RPCChainVMProtocol),
}
Expand Down

0 comments on commit bd85c1d

Please sign in to comment.