mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-24 23:35:19 +00:00
chore: fix some function names (#1998)
Signed-off-by: cuiweiyuan <cuiweiyuan@aliyun.com.>
This commit is contained in:
parent
ab10ce628c
commit
33932e8ad6
@ -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 {
|
||||
|
@ -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,
|
||||
|
@ -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{})
|
||||
|
Loading…
Reference in New Issue
Block a user