Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: cloudclaim <824973921@qq.com>
  • Loading branch information
cloudclaim committed Jul 12, 2024
1 parent fdd752f commit b699d03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/profiles/keeper/alias_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (k Keeper) IterateDefaultExternalAddresses(ctx sdk.Context, fn func(entry t
}

// GetDefaultExternalAddressEntries returns a slice of DefaultExternalAddressEntry objects containing the details of all the
// default exnternal address entries stored inside the current context
// default external address entries stored inside the current context
func (k Keeper) GetDefaultExternalAddressEntries(ctx sdk.Context) []types.DefaultExternalAddressEntry {
var entries []types.DefaultExternalAddressEntry
k.IterateDefaultExternalAddresses(ctx, func(entry types.DefaultExternalAddressEntry) (stop bool) {
Expand Down
2 changes: 1 addition & 1 deletion x/profiles/keeper/keeper_chain_links.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (k Keeper) DeleteChainLink(ctx sdk.Context, link types.ChainLink) {
store.Delete(types.ChainLinksStoreKey(link.User, link.ChainConfig.Name, link.GetAddressData().GetValue()))
store.Delete(types.ChainLinkOwnerKey(link.ChainConfig.Name, link.GetAddressData().GetValue(), link.User))

// Update the default external address to be the oldest link if the deleted link is default exnternal address
// Update the default external address to be the oldest link if the deleted link is default external address
if k.isDefaultExternalAddress(ctx, link) {
k.updateOwnerDefaultExternalAddress(ctx, link.User, link.ChainConfig.Name)
}
Expand Down
2 changes: 1 addition & 1 deletion x/profiles/spec/07-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ desmos query profiles default-external-addresses [[owner]] [[chain_name]] [flags
```

**Notes**
- The `chain_name` paremeter will only be used if the `owner` is specified
- The `chain_name` parameter will only be used if the `owner` is specified

Example:
```bash
Expand Down

0 comments on commit b699d03

Please sign in to comment.