Skip to content

Commit c7a4db7

Browse files
authored
docs: fix some comments (#1341)
## Description fix some comments <!-- Add a description of the changes that this PR introduces and the files that are the most critical to review. --> --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch (see [PR Targeting](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification - [ ] followed the guidelines for [building modules](https://docs.cosmos.network/v0.44/building-modules/intro.html) - [ ] included the necessary unit and integration [tests](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#testing) - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Corrected typos in comments to enhance clarity. - Updated documentation to specify conditions for using the `chain_name` parameter. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: cloudclaim <824973921@qq.com>
1 parent fdd752f commit c7a4db7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

x/profiles/keeper/alias_functions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (k Keeper) IterateDefaultExternalAddresses(ctx sdk.Context, fn func(entry t
248248
}
249249

250250
// GetDefaultExternalAddressEntries returns a slice of DefaultExternalAddressEntry objects containing the details of all the
251-
// default exnternal address entries stored inside the current context
251+
// default external address entries stored inside the current context
252252
func (k Keeper) GetDefaultExternalAddressEntries(ctx sdk.Context) []types.DefaultExternalAddressEntry {
253253
var entries []types.DefaultExternalAddressEntry
254254
k.IterateDefaultExternalAddresses(ctx, func(entry types.DefaultExternalAddressEntry) (stop bool) {

x/profiles/keeper/keeper_chain_links.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (k Keeper) DeleteChainLink(ctx sdk.Context, link types.ChainLink) {
9494
store.Delete(types.ChainLinksStoreKey(link.User, link.ChainConfig.Name, link.GetAddressData().GetValue()))
9595
store.Delete(types.ChainLinkOwnerKey(link.ChainConfig.Name, link.GetAddressData().GetValue(), link.User))
9696

97-
// Update the default external address to be the oldest link if the deleted link is default exnternal address
97+
// Update the default external address to be the oldest link if the deleted link is default external address
9898
if k.isDefaultExternalAddress(ctx, link) {
9999
k.updateOwnerDefaultExternalAddress(ctx, link.User, link.ChainConfig.Name)
100100
}

x/profiles/spec/07-client.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ desmos query profiles default-external-addresses [[owner]] [[chain_name]] [flags
124124
```
125125

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

129129
Example:
130130
```bash

0 commit comments

Comments
 (0)