From 33932e8ad6885a5ee79b1ccb7d3d1a1200b550c7 Mon Sep 17 00:00:00 2001 From: cuiweiyuan Date: Thu, 8 Aug 2024 21:38:35 +0800 Subject: [PATCH] chore: fix some function names (#1998) Signed-off-by: cuiweiyuan --- x/committee/types/committee.go | 2 +- x/evmutil/types/msg.go | 2 +- x/incentive/keeper/keeper.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x/committee/types/committee.go b/x/committee/types/committee.go index 9da95bda..358b6b0a 100644 --- a/x/committee/types/committee.go +++ b/x/committee/types/committee.go @@ -380,7 +380,7 @@ func MustNewProposal(pubProposal PubProposal, id uint64, committeeID uint64, dea return proposal } -// GetPubProposal returns the PubProposal (govtypes.Content) +// GetContent returns the PubProposal (govtypes.Content) func (p Proposal) GetContent() PubProposal { content, ok := p.Content.GetCachedValue().(PubProposal) if !ok { diff --git a/x/evmutil/types/msg.go b/x/evmutil/types/msg.go index 8c9b5650..093f96a3 100644 --- a/x/evmutil/types/msg.go +++ b/x/evmutil/types/msg.go @@ -214,7 +214,7 @@ func (MsgConvertCosmosCoinToERC20) Route() string { return RouterKey } // Type implements legacytx.LegacyMsg func (MsgConvertCosmosCoinToERC20) Type() string { return TypeMsgConvertCosmosCoinToERC20 } -// NewMsgConvertCosmosCoinToERC20 returns a new MsgConvertCosmosCoinToERC20 +// NewMsgConvertCosmosCoinFromERC20 returns a new MsgConvertCosmosCoinToERC20 func NewMsgConvertCosmosCoinFromERC20( initiator string, receiver string, diff --git a/x/incentive/keeper/keeper.go b/x/incentive/keeper/keeper.go index 07707676..7158c50d 100644 --- a/x/incentive/keeper/keeper.go +++ b/x/incentive/keeper/keeper.go @@ -793,7 +793,7 @@ func (k Keeper) SetSavingsRewardAccrualTime(ctx sdk.Context, poolID string, bloc store.Set([]byte(poolID), bz) } -// IterateSavingsRewardAccrualTimesiterates over all the previous savings reward accrual times in the store +// IterateSavingsRewardAccrualTimes over all the previous savings reward accrual times in the store func (k Keeper) IterateSavingsRewardAccrualTimes(ctx sdk.Context, cb func(string, time.Time) (stop bool)) { store := prefix.NewStore(ctx.KVStore(k.key), types.PreviousSavingsRewardAccrualTimeKeyPrefix) iterator := sdk.KVStorePrefixIterator(store, []byte{})