From 73b6e7375918a963007f842178dd06648cc74715 Mon Sep 17 00:00:00 2001 From: jiangmencity Date: Thu, 30 Jan 2025 18:05:54 +0800 Subject: [PATCH] chore: fix some function names in comment (#845) Signed-off-by: jiangmencity Co-authored-by: Ankur Banerjee --- cmd/cheqd-noded/cmd/debug_extensions.go | 4 ++-- x/did/keeper/keeper_diddoc.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/cheqd-noded/cmd/debug_extensions.go b/cmd/cheqd-noded/cmd/debug_extensions.go index 506a54e0b..a737c4e1a 100644 --- a/cmd/cheqd-noded/cmd/debug_extensions.go +++ b/cmd/cheqd-noded/cmd/debug_extensions.go @@ -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", @@ -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", diff --git a/x/did/keeper/keeper_diddoc.go b/x/did/keeper/keeper_diddoc.go index b4331995c..ab66f4898 100644 --- a/x/did/keeper/keeper_diddoc.go +++ b/x/did/keeper/keeper_diddoc.go @@ -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) { @@ -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)