chore: fix some comments (#21085)

Signed-off-by: riyueguang <rustruby@outlook.com>
This commit is contained in:
riyueguang 2024-07-26 20:00:15 +09:00 committed by GitHub
parent fe8474e9b4
commit 9f5ee3a083
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -1295,4 +1295,4 @@ message MsgSetWithdrawAddress {
}
```
When clients interact with a node they are required to set a codec in in the grpc.Dial. More information can be found in this [doc](https://docs.cosmos.network/v0.46/run-node/interact-node.html#programmatically-via-go).
When clients interact with a node they are required to set a codec in the grpc.Dial. More information can be found in this [doc](https://docs.cosmos.network/v0.46/run-node/interact-node.html#programmatically-via-go).

View File

@ -499,7 +499,7 @@ func (d LegacyDec) ApproxRoot(root uint64) (guess LegacyDec, err error) {
return guess, nil
}
// Power returns a the result of raising to a positive integer power
// Power returns the result of raising to a positive integer power
func (d LegacyDec) Power(power uint64) LegacyDec {
res := LegacyDec{new(big.Int).Set(d.i)}
return res.PowerMut(power)

View File

@ -169,7 +169,7 @@ func InterceptConfigsAndCreateContext(cmd *cobra.Command, customAppConfigTemplat
return serverCtx, nil
}
// CreateSDKLogger creates a the default SDK logger.
// CreateSDKLogger creates the default SDK logger.
// It reads the log level and format from the server context.
func CreateSDKLogger(ctx *Context, out io.Writer) (log.Logger, error) {
var opts []log.Option

View File

@ -10,7 +10,7 @@ import (
"cosmossdk.io/log"
)
// NewLogger creates a the default SDK logger.
// NewLogger creates the default SDK logger.
// It reads the log level and format from the server context.
func NewLogger(v *viper.Viper, out io.Writer) (corelog.Logger, error) {
var opts []log.Option

View File

@ -46,7 +46,7 @@ func (a MinimalAbstractedAccount) RotatePubKey(ctx context.Context, msg *rotatio
return nil, errors.New("not implemented")
}
// Authenticate authenticates the account, auth always passess.
// Authenticate authenticates the account, auth always passes.
func (a MinimalAbstractedAccount) Authenticate(ctx context.Context, msg *account_abstractionv1.MsgAuthenticate) (*account_abstractionv1.MsgAuthenticateResponse, error) {
_, err := a.Sequence.Next(ctx)
if err != nil {