Skip to content

Commit

Permalink
chore: fix struct field name and some typos in comment (#23126)
Browse files Browse the repository at this point in the history
Signed-off-by: oftenoccur <[email protected]>
Co-authored-by: Marko <[email protected]>
Co-authored-by: Alex | Skip <[email protected]>
  • Loading branch information
3 people authored Jan 3, 2025
1 parent d8c8458 commit f29d7f7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/rfc/rfc-003-crosslang.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ These bytes can be used by the **state handler** to determine what type of state

A **state token** is an opaque array of 32-bytes that is passed in each message request.
The hypervisor has no knowledge of what this token represents or how it is created,
but it is expected that modules that mange state do understand this token and use it to manage all state changes
but it is expected that modules that manage state do understand this token and use it to manage all state changes
in consistent transactions.
All side effects regarding state, events, etc. are expected to coordinate around the usage of this token.
It is possible that state modules expose methods for creating new **state tokens**
Expand Down
2 changes: 1 addition & 1 deletion schema/testing/statesim/module_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func DiffModuleStates(expected, actual view.ModuleState) string {
continue
}
if actualColl == nil {
res += fmt.Sprintf("Object Collection %s: actuall collection NOT FOUND\n", objTypeName)
res += fmt.Sprintf("Object Collection %s: actual collection NOT FOUND\n", objTypeName)
continue
}

Expand Down
2 changes: 1 addition & 1 deletion simapp/v2/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

// ExportAppStateAndValidators exports the state of the application for a genesis
// file.
// This is a demonstation of how to export a genesis file. Export may need extended at
// This is a demonstration of how to export a genesis file. Export may need extended at
// the user discretion for cleaning the genesis state at the end provided with jailAllowedAddrs
// Same applies for forZeroHeight preprocessing.
func (app *SimApp[T]) ExportAppStateAndValidators(
Expand Down
2 changes: 1 addition & 1 deletion x/auth/ante/unordered.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var _ sdk.AnteDecorator = (*UnorderedTxDecorator)(nil)
// The UnorderedTxDecorator should be placed as early as possible in the AnteHandler
// chain to ensure that during DeliverTx, the transaction is added to the UnorderedTxManager.
type UnorderedTxDecorator struct {
// maxUnOrderedTTL defines the maximum TTL a transaction can define.
// maxTimeoutDuration defines the maximum TTL a transaction can define.
maxTimeoutDuration time.Duration
txManager *unorderedtx.Manager
env appmodulev2.Environment
Expand Down
2 changes: 1 addition & 1 deletion x/tx/decode/unknown.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func doRejectUnknownFields(
}
// if a message descriptor is a placeholder resolve it using the injected resolver.
// this can happen when a descriptor has been registered in the
// "google.golang.org/protobuf" resgistry but not in "github.com/cosmos/gogoproto".
// "google.golang.org/protobuf" registry but not in "github.com/cosmos/gogoproto".
// fixes: https://github.com/cosmos/cosmos-sdk/issues/22574
if fieldMessage.IsPlaceholder() {
gogoDesc, err := resolver.FindDescriptorByName(fieldMessage.FullName())
Expand Down

0 comments on commit f29d7f7

Please sign in to comment.