chore: fix struct field name and some typos in comment (#23126)
Signed-off-by: oftenoccur <ezc5@sina.com> Co-authored-by: Marko <marko@baricevic.me> Co-authored-by: Alex | Skip <alex@skip.money>
This commit is contained in:
parent
d8c84589fc
commit
f29d7f75f1
@ -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**
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user