Skip to content

Commit

Permalink
chore: fix some function names in comment (#845)
Browse files Browse the repository at this point in the history
Signed-off-by: jiangmencity <jiangmen@52it.net>
Co-authored-by: Ankur Banerjee <ankurdotb@users.noreply.github.com>
  • Loading branch information
jiangmencity and ankurdotb authored Jan 30, 2025
1 parent c9723ff commit 73b6e73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/cheqd-noded/cmd/debug_extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func ed25519Cmd() *cobra.Command {
return cmd
}

// ed25519Cmd returns cobra Command.
// ed25519RandomCmd returns cobra Command.
func ed25519RandomCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "random",
Expand Down Expand Up @@ -64,7 +64,7 @@ func ed25519RandomCmd() *cobra.Command {
return cmd
}

// ed25519publicKeyBase64ToJwk returns cobra Command.
// ed25519publicKeyBase64ToJwkCmd returns cobra Command.
func ed25519publicKeyBase64ToJwkCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "base64-jwk",
Expand Down
4 changes: 2 additions & 2 deletions x/did/keeper/keeper_diddoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (k Keeper) GetAllDidDocVersions(ctx *sdk.Context, did string) ([]*types.Met
return result, nil
}

// SetDidDocLatestVersion sets the latest version id value for a diddoc
// SetLatestDidDocVersion sets the latest version id value for a diddoc
func (k Keeper) SetLatestDidDocVersion(ctx *sdk.Context, did, version string) error {
// Update counter. We use latest version as existence indicator.
if !k.HasLatestDidDocVersion(ctx, did) {
Expand All @@ -162,7 +162,7 @@ func (k Keeper) SetLatestDidDocVersion(ctx *sdk.Context, did, version string) er
return nil
}

// GetDidDocLatestVersion returns the latest version id value for a diddoc
// GetLatestDidDocVersion returns the latest version id value for a diddoc
func (k Keeper) GetLatestDidDocVersion(ctx *sdk.Context, id string) (string, error) {
store := ctx.KVStore(k.storeKey)

Expand Down

0 comments on commit 73b6e73

Please sign in to comment.