chore: fix typos (#25013)
Signed-off-by: minxinyi <minxinyi6@outlook.com> Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
parent
cd714c33b8
commit
f8daf8b371
@ -262,7 +262,7 @@ func uint32ToBytes(i uint32) []byte {
|
||||
return b[:]
|
||||
}
|
||||
|
||||
// i64 returns the two halfs of the SHA512 HMAC of key and data.
|
||||
// i64 returns the two halves of the SHA512 HMAC of key and data.
|
||||
func i64(key, data []byte) (il, ir [32]byte) {
|
||||
mac := hmac.New(sha512.New, key)
|
||||
// sha512 does not err
|
||||
|
||||
@ -69,7 +69,7 @@ type BaseConfig struct {
|
||||
// It has no bearing on application state pruning which is determined by the
|
||||
// "pruning-*" configurations.
|
||||
//
|
||||
// Note: CometBFT block pruning is dependant on this parameter in conjunction
|
||||
// Note: CometBFT block pruning is dependent on this parameter in conjunction
|
||||
// with the unbonding (safety threshold) period, state pruning and state sync
|
||||
// snapshot parameters to determine the correct minimum value of
|
||||
// ResponseCommit.RetainHeight.
|
||||
|
||||
@ -58,7 +58,7 @@ halt-time = {{ .BaseConfig.HaltTime }}
|
||||
# It has no bearing on application state pruning which is determined by the
|
||||
# "pruning-*" configurations.
|
||||
#
|
||||
# Note: CometBFT block pruning is dependant on this parameter in conjunction
|
||||
# Note: CometBFT block pruning is dependent on this parameter in conjunction
|
||||
# with the unbonding (safety threshold) period, state pruning and state sync
|
||||
# snapshot parameters to determine the correct minimum value of
|
||||
# ResponseCommit.RetainHeight.
|
||||
|
||||
@ -533,7 +533,7 @@ func NewSimApp(
|
||||
)
|
||||
|
||||
// BasicModuleManager defines the module BasicManager is in charge of setting up basic,
|
||||
// non-dependant module elements, such as codec registration and genesis verification.
|
||||
// non-dependent module elements, such as codec registration and genesis verification.
|
||||
// By default it is composed of all the module from the module manager.
|
||||
// Additionally, app module basics can be overwritten by passing them as argument.
|
||||
app.BasicModuleManager = module.NewBasicManagerFromManager(
|
||||
|
||||
@ -52,7 +52,7 @@ import (
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
)
|
||||
|
||||
// AppModuleBasic is the standard form for basic non-dependant elements of an application module.
|
||||
// AppModuleBasic is the standard form for basic non-dependent elements of an application module.
|
||||
type AppModuleBasic interface {
|
||||
HasName
|
||||
RegisterLegacyAminoCodec(*codec.LegacyAmino)
|
||||
|
||||
@ -14,7 +14,7 @@ func NewDeposit(proposalID uint64, depositor sdk.AccAddress, amount sdk.Coins) D
|
||||
// Deposits is a collection of Deposit objects
|
||||
type Deposits []*Deposit
|
||||
|
||||
// Equal returns true if two slices (order-dependant) of deposits are equal.
|
||||
// Equal returns true if two slices (order-dependent) of deposits are equal.
|
||||
func (d Deposits) Equal(other Deposits) bool {
|
||||
if len(d) != len(other) {
|
||||
return false
|
||||
|
||||
@ -31,7 +31,7 @@ func (v Vote) Empty() bool {
|
||||
// Votes is a collection of Vote objects
|
||||
type Votes []*Vote
|
||||
|
||||
// Equal returns true if two slices (order-dependant) of votes are equal.
|
||||
// Equal returns true if two slices (order-dependent) of votes are equal.
|
||||
func (v Votes) Equal(other Votes) bool {
|
||||
if len(v) != len(other) {
|
||||
return false
|
||||
|
||||
@ -19,7 +19,7 @@ func (d Deposit) Empty() bool {
|
||||
// Deposits is a collection of Deposit objects
|
||||
type Deposits []Deposit
|
||||
|
||||
// Equal returns true if two slices (order-dependant) of deposits are equal.
|
||||
// Equal returns true if two slices (order-dependent) of deposits are equal.
|
||||
func (d Deposits) Equal(other Deposits) bool {
|
||||
if len(d) != len(other) {
|
||||
return false
|
||||
|
||||
@ -90,7 +90,7 @@ type Proposals []Proposal
|
||||
|
||||
var _ codectypes.UnpackInterfacesMessage = Proposals{}
|
||||
|
||||
// Equal returns true if two slices (order-dependant) of proposals are equal.
|
||||
// Equal returns true if two slices (order-dependent) of proposals are equal.
|
||||
func (p Proposals) Equal(other Proposals) bool {
|
||||
if len(p) != len(other) {
|
||||
return false
|
||||
|
||||
@ -22,7 +22,7 @@ func (v Vote) Empty() bool {
|
||||
// Votes is an array of vote
|
||||
type Votes []Vote
|
||||
|
||||
// Equal returns true if two slices (order-dependant) of votes are equal.
|
||||
// Equal returns true if two slices (order-dependent) of votes are equal.
|
||||
func (v Votes) Equal(other Votes) bool {
|
||||
if len(v) != len(other) {
|
||||
return false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user