Skip to content

Commit

Permalink
use example attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Jul 15, 2024
1 parent 2b586e1 commit 425db57
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions server/module_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@ import (

"github.com/cosmos/cosmos-sdk/client/flags"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
"github.com/cosmos/cosmos-sdk/version"
)

// ModuleHashByHeightQuery retrieves the module hashes at a given height.
func ModuleHashByHeightQuery[T servertypes.Application](appCreator servertypes.AppCreator[T]) *cobra.Command {
cmd := &cobra.Command{
Use: "module-hash-by-height [height]",
Short: "Get module hashes at a given height",
Long: `Get module hashes at a given height. This command is useful for debugging and verifying the state of the application at a given height. Daemon should not be running when calling this command.
Example:
appd module-hash-by-height 16841115,
`,
Args: cobra.ExactArgs(1), // Ensure exactly one argument is provided
Use: "module-hash-by-height [height]",
Short: "Get module hashes at a given height",
Long: "Get module hashes at a given height. This command is useful for debugging and verifying the state of the application at a given height. Daemon should not be running when calling this command.",
Example: fmt.Sprintf("%s module-hash-by-height 16841115", version.AppName),
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
heightToRetrieveString := args[0]

Expand Down

0 comments on commit 425db57

Please sign in to comment.