Skip to content

Commit

Permalink
chore: fix some function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: hongkuang <liurenhong@outlook.com>
  • Loading branch information
HongKuang committed Dec 3, 2024
1 parent a6525cb commit 249af62
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/params/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion testutil/apptesting/test_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion x/dex/keeper/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion x/tokenfactory/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 249af62

Please sign in to comment.