Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #308

Merged
merged 2 commits into from
Jul 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ func (app *SommelierApp) ModuleAccountAddrs() map[string]bool {
return modAccAddrs
}

// ModuleAccountNames returns a map of module account address to module name
// ModuleAccountAddressesToNames returns a map of module account address to module name
func (app *SommelierApp) ModuleAccountAddressesToNames(moduleAccounts []string) map[string]string {
modAccNames := make(map[string]string)
for _, acc := range moduleAccounts {
Expand Down
2 changes: 1 addition & 1 deletion x/auction/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func GetEndedAuctionsPrefix() []byte {
return []byte{EndedAuctionsPrefix}
}

// GetEndedAuctionsKey returns the key for an ended auction
// GetEndedAuctionKey returns the key for an ended auction
func GetEndedAuctionKey(id uint32) []byte {
b := make([]byte, 4)
binary.BigEndian.PutUint32(b, id)
Expand Down
2 changes: 1 addition & 1 deletion x/axelarcork/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ func (k Keeper) DeleteAxelarCorkResult(ctx sdk.Context, chainID uint64, id []byt
ctx.KVStore(k.storeKey).Delete(types.GetAxelarCorkResultKey(chainID, id))
}

// IterateCorksResult iterates over all cork results by chain ID
// IterateAxelarCorkResults iterates over all cork results by chain ID
func (k Keeper) IterateAxelarCorkResults(ctx sdk.Context, chainID uint64, cb func(id []byte, blockHeight uint64, approved bool, approvalPercentage string, corkResult types.AxelarCorkResult) (stop bool)) {
store := ctx.KVStore(k.storeKey)
iter := sdk.KVStorePrefixIterator(store, types.GetAxelarCorkResultPrefix(chainID))
Expand Down
2 changes: 1 addition & 1 deletion x/cork/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (k Keeper) DeleteCorkResult(ctx sdk.Context, id []byte) {
ctx.KVStore(k.storeKey).Delete(corktypes.GetCorkResultKey(id))
}

// IterateCorksResult iterates over all cork results in the store
// IterateCorkResults iterates over all cork results in the store
func (k Keeper) IterateCorkResults(ctx sdk.Context, cb func(id []byte, blockHeight uint64, approved bool, approvalPercentage string, corkResult types.CorkResult) (stop bool)) {
store := ctx.KVStore(k.storeKey)
iter := sdk.KVStorePrefixIterator(store, corktypes.GetCorkResultPrefix())
Expand Down
Loading