From 249af6229f090ce00bd9081b4aac559a4fdf0cce Mon Sep 17 00:00:00 2001 From: hongkuang Date: Tue, 3 Dec 2024 15:47:02 +0800 Subject: [PATCH] chore: fix some function names in comment Signed-off-by: hongkuang --- app/params/encoding.go | 2 +- testutil/apptesting/test_suite.go | 2 +- x/dex/keeper/pool.go | 2 +- x/tokenfactory/types/keys.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/params/encoding.go b/app/params/encoding.go index 066043d42..32fcf34ae 100644 --- a/app/params/encoding.go +++ b/app/params/encoding.go @@ -20,7 +20,7 @@ type EncodingConfig struct { Amino *codec.LegacyAmino } -// makeEncodingConfig creates an EncodingConfig for an amino based test configuration. +// MakeEncodingConfig creates an EncodingConfig for an amino based test configuration. func MakeEncodingConfig() EncodingConfig { amino := codec.NewLegacyAmino() reg, err := types.NewInterfaceRegistryWithOptions(types.InterfaceRegistryOptions{ diff --git a/testutil/apptesting/test_suite.go b/testutil/apptesting/test_suite.go index ba9b4e3b3..187d0dd6c 100644 --- a/testutil/apptesting/test_suite.go +++ b/testutil/apptesting/test_suite.go @@ -49,7 +49,7 @@ func (s *KeeperTestHelper) Setup() { } } -// setupAddr takes a balance, prefix, and address number. Then returns the respective account address byte array. +// SetupAddr takes a balance, prefix, and address number. Then returns the respective account address byte array. // If prefix is left blank, it will be replaced with a random prefix. func SetupAddr(index int) sdk.AccAddress { prefixBz := make([]byte, 8) diff --git a/x/dex/keeper/pool.go b/x/dex/keeper/pool.go index 8da8a1850..f4c13f6b2 100644 --- a/x/dex/keeper/pool.go +++ b/x/dex/keeper/pool.go @@ -56,7 +56,7 @@ func (k Keeper) incrementPoolCount(ctx sdk.Context) { k.SetPoolCount(ctx, currentCount+1) } -// GetNextPoolId get ID for the next pool to be created +// GetNextPoolID get ID for the next pool to be created func (k Keeper) GetNextPoolID(ctx sdk.Context) uint64 { return k.GetPoolCount(ctx) } diff --git a/x/tokenfactory/types/keys.go b/x/tokenfactory/types/keys.go index 8bfeb012c..2eebccf88 100644 --- a/x/tokenfactory/types/keys.go +++ b/x/tokenfactory/types/keys.go @@ -42,7 +42,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))