Skip to content

Commit

Permalink
chore: fix some function names (#1998)
Browse files Browse the repository at this point in the history
Signed-off-by: cuiweiyuan <cuiweiyuan@aliyun.com.>
  • Loading branch information
cuiweiyuan authored Aug 8, 2024
1 parent ab10ce6 commit 33932e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/committee/types/committee.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion x/evmutil/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion x/incentive/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
Expand Down

0 comments on commit 33932e8

Please sign in to comment.