Skip to content

Commit

Permalink
chore: fix some comments (#308)
Browse files Browse the repository at this point in the history
Signed-off-by: pudongair <[email protected]>
Co-authored-by: Zaki Manian <[email protected]>
  • Loading branch information
pudongair and zmanian authored Jul 27, 2024
1 parent f0948ad commit 57b36d5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit 57b36d5

Please sign in to comment.