chore: fix some function names (#1998)

Signed-off-by: cuiweiyuan <cuiweiyuan@aliyun.com.>
This commit is contained in:
cuiweiyuan 2024-08-08 21:38:35 +08:00 committed by GitHub
parent ab10ce628c
commit 33932e8ad6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -380,7 +380,7 @@ func MustNewProposal(pubProposal PubProposal, id uint64, committeeID uint64, dea
return proposal return proposal
} }
// GetPubProposal returns the PubProposal (govtypes.Content) // GetContent returns the PubProposal (govtypes.Content)
func (p Proposal) GetContent() PubProposal { func (p Proposal) GetContent() PubProposal {
content, ok := p.Content.GetCachedValue().(PubProposal) content, ok := p.Content.GetCachedValue().(PubProposal)
if !ok { if !ok {

View File

@ -214,7 +214,7 @@ func (MsgConvertCosmosCoinToERC20) Route() string { return RouterKey }
// Type implements legacytx.LegacyMsg // Type implements legacytx.LegacyMsg
func (MsgConvertCosmosCoinToERC20) Type() string { return TypeMsgConvertCosmosCoinToERC20 } func (MsgConvertCosmosCoinToERC20) Type() string { return TypeMsgConvertCosmosCoinToERC20 }
// NewMsgConvertCosmosCoinToERC20 returns a new MsgConvertCosmosCoinToERC20 // NewMsgConvertCosmosCoinFromERC20 returns a new MsgConvertCosmosCoinToERC20
func NewMsgConvertCosmosCoinFromERC20( func NewMsgConvertCosmosCoinFromERC20(
initiator string, initiator string,
receiver string, receiver string,

View File

@ -793,7 +793,7 @@ func (k Keeper) SetSavingsRewardAccrualTime(ctx sdk.Context, poolID string, bloc
store.Set([]byte(poolID), bz) 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)) { func (k Keeper) IterateSavingsRewardAccrualTimes(ctx sdk.Context, cb func(string, time.Time) (stop bool)) {
store := prefix.NewStore(ctx.KVStore(k.key), types.PreviousSavingsRewardAccrualTimeKeyPrefix) store := prefix.NewStore(ctx.KVStore(k.key), types.PreviousSavingsRewardAccrualTimeKeyPrefix)
iterator := sdk.KVStorePrefixIterator(store, []byte{}) iterator := sdk.KVStorePrefixIterator(store, []byte{})