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

Fix typos in various files #23208

Closed
wants to merge 7 commits into from
Closed
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 baseapp/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (app *BaseApp) NewContextLegacy(isCheckTx bool, header cmtproto.Header) sdk
return sdk.NewContext(app.finalizeBlockState.ms, false, app.logger).WithBlockHeader(header)
}

// NewContext returns a new sdk.Context with a empty header
// NewContext returns a new sdk.Context with an empty header
func (app *BaseApp) NewContext(isCheckTx bool) sdk.Context {
return app.NewContextLegacy(isCheckTx, cmtproto.Header{})
}
Expand Down
2 changes: 1 addition & 1 deletion client/v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ To sign a file `sign-file` command offers some helpful flags:
--encoding string Choose an encoding method for the file content to be added as msg data (no-encoding|base64|hex) (default "no-encoding")
--indent string Choose an indent for the tx (default " ")
--notEmitUnpopulated Don't show unpopulated fields in the tx
--output string Choose an output format for the tx (json|text (default "json")
--output string Choose an output format for the tx (json|text) (default "json")
--output-document string The document will be written to the given file instead of STDOUT
```

Expand Down
2 changes: 1 addition & 1 deletion core/appmodule/doc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package appmodule defines what is needed for an module to be used in the Cosmos SDK (runtime).
// Package appmodule defines what is needed for a module to be used in the Cosmos SDK (runtime).
// It is equivalent to the appmodulev2 package, but less flexible to stay compatible with baseapp instead of server/v2.
// If you are looking at integrating dependency injection into your module please see depinject appconfig documentation.
package appmodule
2 changes: 1 addition & 1 deletion docs/rfc/rfc-004-accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ their structure and functionality.
Instead of representing accounts as simple `google.Protobuf.Any` structures stored in state with no business logic
attached, this proposal suggests a more sophisticated account representation that is closer to module entities.
In fact, accounts should be able to receive messages and process them in the same way modules do, and be capable of storing
state in a isolated (prefixed) portion of state belonging only to them, in the same way as modules do.
state in an isolated (prefixed) portion of state belonging only to them, in the same way as modules do.

### Account Message Reception

Expand Down
2 changes: 1 addition & 1 deletion x/auth/signing/sign_mode_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/cosmos/cosmos-sdk/types/tx/signing"
)

// SignModeHandler defines a interface to be implemented by types which will handle
// SignModeHandler defines an interface to be implemented by types which will handle
// SignMode's by generating sign bytes from a Tx and SignerData
type SignModeHandler interface {
// DefaultMode is the default mode that is to be used with this handler if no
Expand Down
2 changes: 1 addition & 1 deletion x/staking/keeper/cons_pubkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (k Keeper) updateToNewPubkey(ctx context.Context, val types.Validator, oldP
}

// setConsAddrToValidatorIdentifierMap adds an entry in the state with the current consAddr to the initial consAddr of the validator.
// It first tries to find the validatorIdentifier if there is a entry already present in the state.
// It first tries to find the validatorIdentifier if there is an entry already present in the state.
func (k Keeper) setConsAddrToValidatorIdentifierMap(ctx context.Context, oldConsAddr, newConsAddr sdk.ConsAddress) error {
validatorIdentifier, err := k.ConsAddrToValidatorIdentifierMap.Get(ctx, oldConsAddr)
if err != nil && !errors.Is(err, collections.ErrNotFound) {
Expand Down
2 changes: 1 addition & 1 deletion x/tx/signing/textual/protoreflect_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

var _ protoreflect.List = (*genericList[proto.Message])(nil)

// NewGenericList creates a empty list that satisfies the protoreflect.List
// NewGenericList creates an empty list that satisfies the protoreflect.List
// interface.
func NewGenericList[T proto.Message](list []T) protoreflect.List {
return &genericList[T]{&list}
Expand Down
Loading