From 88c69307484b00e51cd901ef046de253b38af310 Mon Sep 17 00:00:00 2001 From: pwdcd Date: Wed, 14 Aug 2024 11:09:49 +0800 Subject: [PATCH] chore: fix some function names Signed-off-by: pwdcd --- bridge/setu/util/common.go | 4 ++-- checkpoint/keeper_milestone.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bridge/setu/util/common.go b/bridge/setu/util/common.go index d8173b004..eeb72f887 100644 --- a/bridge/setu/util/common.go +++ b/bridge/setu/util/common.go @@ -208,7 +208,7 @@ func IsInProposerList(cliCtx cliContext.CLIContext, count uint64) (bool, error) return false, nil } -// IsInProposerList checks if we are in current proposer +// IsInMilestoneProposerList checks if we are in current proposer func IsInMilestoneProposerList(cliCtx cliContext.CLIContext, count uint64) (bool, error) { logger.Debug("Skipping proposers", "count", strconv.FormatUint(count, 10)) @@ -452,7 +452,7 @@ func GetCheckpointParams(cliCtx cliContext.CLIContext) (*checkpointTypes.Params, return ¶ms, nil } -// GetCheckpointParams return params +// GetMilestoneParams return params func GetMilestoneParams(cliCtx cliContext.CLIContext) (*milestoneTypes.Params, error) { response, err := helper.FetchFromAPI( cliCtx, diff --git a/checkpoint/keeper_milestone.go b/checkpoint/keeper_milestone.go index 03cc7ef36..5b38152db 100644 --- a/checkpoint/keeper_milestone.go +++ b/checkpoint/keeper_milestone.go @@ -116,7 +116,7 @@ func (k *Keeper) SetMilestoneCount(ctx sdk.Context, number uint64) { store.Set(CountKey, value) } -// GetCount returns milestone count +// GetMilestoneCount returns milestone count func (k *Keeper) GetMilestoneCount(ctx sdk.Context) uint64 { store := ctx.KVStore(k.storeKey) // check if count is there