From f29d7f75f1f1cd772902302f2e887b01401e08fa Mon Sep 17 00:00:00 2001 From: oftenoccur <166520808+oftenoccur@users.noreply.github.com> Date: Sat, 4 Jan 2025 00:54:07 +0800 Subject: [PATCH] chore: fix struct field name and some typos in comment (#23126) Signed-off-by: oftenoccur Co-authored-by: Marko Co-authored-by: Alex | Skip --- docs/rfc/rfc-003-crosslang.md | 2 +- schema/testing/statesim/module_diff.go | 2 +- simapp/v2/export.go | 2 +- x/auth/ante/unordered.go | 2 +- x/tx/decode/unknown.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/rfc/rfc-003-crosslang.md b/docs/rfc/rfc-003-crosslang.md index b71db170e0..845714b68b 100644 --- a/docs/rfc/rfc-003-crosslang.md +++ b/docs/rfc/rfc-003-crosslang.md @@ -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** diff --git a/schema/testing/statesim/module_diff.go b/schema/testing/statesim/module_diff.go index 6570b900be..8bb9507336 100644 --- a/schema/testing/statesim/module_diff.go +++ b/schema/testing/statesim/module_diff.go @@ -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 } diff --git a/simapp/v2/export.go b/simapp/v2/export.go index 04701bc687..94cb34e2fa 100644 --- a/simapp/v2/export.go +++ b/simapp/v2/export.go @@ -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( diff --git a/x/auth/ante/unordered.go b/x/auth/ante/unordered.go index f494c78c49..1d1b36c852 100644 --- a/x/auth/ante/unordered.go +++ b/x/auth/ante/unordered.go @@ -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 diff --git a/x/tx/decode/unknown.go b/x/tx/decode/unknown.go index 3a30ef8987..6d7b9616b2 100644 --- a/x/tx/decode/unknown.go +++ b/x/tx/decode/unknown.go @@ -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())