From 5920b2c31cb6e26e03bbc83451657dd49bdaf015 Mon Sep 17 00:00:00 2001 From: tcpdumppy <847462026@qq.com> Date: Fri, 7 Mar 2025 10:43:26 +0800 Subject: [PATCH] chore: make function comment match function name Signed-off-by: tcpdumppy <847462026@qq.com> --- x/skyway/keeper/pool.go | 2 +- x/tokenfactory/types/keys.go | 2 +- x/valset/keeper/keeper.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x/skyway/keeper/pool.go b/x/skyway/keeper/pool.go index 788f642c..a88c6c24 100644 --- a/x/skyway/keeper/pool.go +++ b/x/skyway/keeper/pool.go @@ -163,7 +163,7 @@ func (k Keeper) RemoveFromOutgoingPoolAndRefund(ctx context.Context, txId uint64 ) } -// addUnbatchedTx creates a new transaction in the pool +// addUnbatchedTX creates a new transaction in the pool // WARNING: Do not make this function public func (k Keeper) addUnbatchedTX(ctx context.Context, val *types.InternalOutgoingTransferTx) error { store := k.GetStore(ctx, types.StoreModulePrefix) diff --git a/x/tokenfactory/types/keys.go b/x/tokenfactory/types/keys.go index fac4a6e3..bee93926 100644 --- a/x/tokenfactory/types/keys.go +++ b/x/tokenfactory/types/keys.go @@ -37,7 +37,7 @@ func GetDenomPrefixStore(denom string) []byte { return []byte(strings.Join([]string{DenomsPrefixKey, denom, ""}, KeySeparator)) } -// GetCreatorsPrefix returns the store prefix where the list of the denoms created by a specific +// GetCreatorPrefix returns the store prefix where the list of the denoms created by a specific // creator are stored func GetCreatorPrefix(creator string) []byte { return []byte(strings.Join([]string{CreatorPrefixKey, creator, ""}, KeySeparator)) diff --git a/x/valset/keeper/keeper.go b/x/valset/keeper/keeper.go index 2d840549..7634bcca 100644 --- a/x/valset/keeper/keeper.go +++ b/x/valset/keeper/keeper.go @@ -101,7 +101,7 @@ func (k Keeper) Logger(ctx context.Context) log.Logger { return sdkCtx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) } -// addExternalChainInfo adds external chain info, such as this conductor's address on outside chains so that +// AddExternalChainInfo adds external chain info, such as this conductor's address on outside chains so that // we can attribute rewards for running the jobs. func (k Keeper) AddExternalChainInfo(ctx context.Context, valAddr sdk.ValAddress, newChainInfo []*types.ExternalChainInfo) error { return k.SetExternalChainInfoState(ctx, valAddr, newChainInfo)