From 6f6bc329d59da946caf47f1140f16bcba05fe301 Mon Sep 17 00:00:00 2001 From: viktorking7 <140458814+viktorking7@users.noreply.github.com> Date: Thu, 21 Aug 2025 21:54:43 +0200 Subject: [PATCH] fix(typos): correct spelling and wording in Go code and Markdown (#25232) Co-authored-by: Alex | Interchain Labs --- codec/unknownproto/benchmarks_test.go | 2 +- contrib/x/README.md | 4 ++-- crypto/ledger/ledger_test.go | 2 +- depinject/container.go | 2 +- math/uint_test.go | 2 +- server/start.go | 2 +- server/util.go | 2 +- simapp/app_di.go | 2 +- types/config_test.go | 4 ++-- x/auth/ante/sigverify.go | 4 ++-- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/codec/unknownproto/benchmarks_test.go b/codec/unknownproto/benchmarks_test.go index 114e4e688f..a18805d6c8 100644 --- a/codec/unknownproto/benchmarks_test.go +++ b/codec/unknownproto/benchmarks_test.go @@ -22,7 +22,7 @@ func init() { Fee: 99, Nested: &testdata.Nested3B{ Id: 3, - Name: "3A this one that one there those oens", + Name: "3A this one that one there those ones", Age: 4588, B4: []*testdata.Nested4B{ { diff --git a/contrib/x/README.md b/contrib/x/README.md index 669c30eaef..96508acf92 100644 --- a/contrib/x/README.md +++ b/contrib/x/README.md @@ -1,5 +1,5 @@ # Deprecated Modules -We maintain depcrecated modules that are no longer supported for backwards compatibility. If users want to +We maintain deprecated modules that are no longer supported for backwards compatibility. If users want to continue using these modules, we recommend they fork themselves and maintain as ICL will no longer be -updating these modules or supporting them in our Bug Bounty Program. \ No newline at end of file +updating these modules or supporting them in our Bug Bounty Program. diff --git a/crypto/ledger/ledger_test.go b/crypto/ledger/ledger_test.go index 62840d4a45..4d3fd3e67c 100644 --- a/crypto/ledger/ledger_test.go +++ b/crypto/ledger/ledger_test.go @@ -163,7 +163,7 @@ func TestPublicKeyHDPath(t *testing.T) { require.NoError(t, tmp.ValidateKey()) (&tmp).AssertIsPrivKeyInner() - // in this test we are chekcking if the generated keys are correct and stored in a right path. + // in this test we are checking if the generated keys are correct and stored in a right path. require.Equal(t, expectedPubKeys[i], priv.PubKey().String(), "Is your device using test mnemonic: %s ?", testdata.TestMnemonic) diff --git a/depinject/container.go b/depinject/container.go index 948a4b545c..5da11bdd15 100644 --- a/depinject/container.go +++ b/depinject/container.go @@ -297,7 +297,7 @@ func (c *container) addNode(provider *providerDescriptor, key *moduleKey) (inter } if hasOwnModuleKeyParam { - return nil, fmt.Errorf("%T and %T must not be declared as dependencies on the same provided", + return nil, fmt.Errorf("%T and %T must not be declared as dependencies on the same provider", ModuleKey{}, OwnModuleKey{}) } diff --git a/math/uint_test.go b/math/uint_test.go index 1bf8b0b507..d62fccc161 100644 --- a/math/uint_test.go +++ b/math/uint_test.go @@ -17,7 +17,7 @@ type uintTestSuite struct { suite.Suite } -func TestUnitTestSuite(t *testing.T) { +func TestUintTestSuite(t *testing.T) { suite.Run(t, new(uintTestSuite)) } diff --git a/server/start.go b/server/start.go index 281906ce97..6c072164ac 100644 --- a/server/start.go +++ b/server/start.go @@ -130,7 +130,7 @@ type StartCmdOptions struct { PostSetupStandalone func(svrCtx *Context, clientCtx client.Context, ctx context.Context, g *errgroup.Group) error // AddFlags add custom flags to start cmd AddFlags func(cmd *cobra.Command) - // StartCommandHanlder can be used to customize the start command handler + // StartCommandHandler can be used to customize the start command handler StartCommandHandler func(svrCtx *Context, clientCtx client.Context, appCreator types.AppCreator, inProcessConsensus bool, opts StartCmdOptions) error } diff --git a/server/util.go b/server/util.go index b3100dd63b..9e5cc05a3b 100644 --- a/server/util.go +++ b/server/util.go @@ -165,7 +165,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 diff --git a/simapp/app_di.go b/simapp/app_di.go index baa5557056..3e8e010d0a 100644 --- a/simapp/app_di.go +++ b/simapp/app_di.go @@ -123,7 +123,7 @@ func NewSimApp( // // authtypes.RandomGenesisAccountsFn(simulation.RandomGenesisAccounts), // - // For providing a custom a base account type add it below. + // For providing a custom base account type add it below. // By default the auth module uses authtypes.ProtoBaseAccount(). // // func() sdk.AccountI { return authtypes.ProtoBaseAccount() }, diff --git a/types/config_test.go b/types/config_test.go index be77573bcc..7b3435f997 100644 --- a/types/config_test.go +++ b/types/config_test.go @@ -57,8 +57,8 @@ func (s *configTestSuite) TestConfig_SetFullFundraiserPath() { config.SetFullFundraiserPath("test/path") s.Require().Equal("test/path", config.GetFullFundraiserPath()) - config.SetFullFundraiserPath("test/poth") - s.Require().Equal("test/poth", config.GetFullFundraiserPath()) + config.SetFullFundraiserPath("test/path") + s.Require().Equal("test/path", config.GetFullFundraiserPath()) config.Seal() s.Require().Panics(func() { config.SetFullFundraiserPath("x/test/path") }) diff --git a/x/auth/ante/sigverify.go b/x/auth/ante/sigverify.go index 69d7985d81..b65800a151 100644 --- a/x/auth/ante/sigverify.go +++ b/x/auth/ante/sigverify.go @@ -35,7 +35,7 @@ var ( ) func init() { - // This decodes a valid hex string into a sepc256k1Pubkey for use in transaction simulation + // This decodes a valid hex string into a secp256k1Pubkey for use in transaction simulation bz, _ := hex.DecodeString("035AD6810A47F073553FF30D2FCC7E0D3B1C0B74B61A1AAA2582344037151E143A") copy(key, bz) simSecp256k1Pubkey.Key = key @@ -100,7 +100,7 @@ func (spkd SetPubKeyDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate b if err != nil { return ctx, err } - // account already has pubkey set,no need to reset + // account already has pubkey set, no need to reset if acc.GetPubKey() != nil { continue }