From feec26d70515de59ae41d54b4d390cde5b347d91 Mon Sep 17 00:00:00 2001 From: bigbear <155267841+aso20455@users.noreply.github.com> Date: Tue, 22 Jul 2025 21:14:55 +0300 Subject: [PATCH] fix: correct spelling inconsistencies throughout the codebase (#24963) --- codec/amino_codec_test.go | 2 +- codec/codec.go | 2 +- codec/proto_codec_test.go | 2 +- store/internal/conv/doc.go | 2 +- store/prefix/store.go | 2 +- store/types/gas.go | 2 +- x/bank/README.md | 2 +- x/gov/types/config.go | 2 +- x/params/README.md | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/codec/amino_codec_test.go b/codec/amino_codec_test.go index ff437755fb..1af5010582 100644 --- a/codec/amino_codec_test.go +++ b/codec/amino_codec_test.go @@ -22,7 +22,7 @@ func createTestCodec() *codec.LegacyAmino { return cdc } -func TestAminoMarsharlInterface(t *testing.T) { +func TestAminoMarshalInterface(t *testing.T) { cdc := codec.NewAminoCodec(createTestCodec()) m := interfaceMarshaler{cdc.MarshalInterface, cdc.UnmarshalInterface} testInterfaceMarshaling(require.New(t), m, true) diff --git a/codec/codec.go b/codec/codec.go index dc2f5e0d64..fd7064e0f2 100644 --- a/codec/codec.go +++ b/codec/codec.go @@ -10,7 +10,7 @@ import ( type ( // Codec defines a functionality for serializing other objects. - // Users can defin a custom Protobuf-based serialization. + // Users can define a custom Protobuf-based serialization. // Note, Amino can still be used without any dependency on Protobuf. // SDK provides to Codec implementations: // diff --git a/codec/proto_codec_test.go b/codec/proto_codec_test.go index a7743d16c5..b93b25a957 100644 --- a/codec/proto_codec_test.go +++ b/codec/proto_codec_test.go @@ -36,7 +36,7 @@ func createTestInterfaceRegistry() types.InterfaceRegistry { return interfaceRegistry } -func TestProtoMarsharlInterface(t *testing.T) { +func TestProtoMarshalInterface(t *testing.T) { cdc := codec.NewProtoCodec(createTestInterfaceRegistry()) m := interfaceMarshaler{cdc.MarshalInterface, cdc.UnmarshalInterface} testInterfaceMarshaling(require.New(t), m, false) diff --git a/store/internal/conv/doc.go b/store/internal/conv/doc.go index 1c86f5c144..4b45d1ab53 100644 --- a/store/internal/conv/doc.go +++ b/store/internal/conv/doc.go @@ -1,2 +1,2 @@ -// Package conv provides internal functions for convertions and data manipulation +// Package conv provides internal functions for conversions and data manipulation package conv diff --git a/store/prefix/store.go b/store/prefix/store.go index 86e7635bad..40b65fd8da 100644 --- a/store/prefix/store.go +++ b/store/prefix/store.go @@ -14,7 +14,7 @@ var _ types.KVStore = Store{} // Store is similar with cometbft/cometbft/libs/db/prefix_db // both gives access only to the limited subset of the store -// for convinience or safety +// for convenience or safety type Store struct { parent types.KVStore prefix []byte diff --git a/store/types/gas.go b/store/types/gas.go index baceb7ce25..46e7e4ebd0 100644 --- a/store/types/gas.go +++ b/store/types/gas.go @@ -191,7 +191,7 @@ func (g *infiniteGasMeter) ConsumeGas(amount Gas, descriptor string) { // RefundGas will deduct the given amount from the gas consumed. If the amount is greater than the // gas consumed, the function will panic. // -// Use case: This functionality enables refunding gas to the trasaction or block gas pools so that +// Use case: This functionality enables refunding gas to the transaction or block gas pools so that // EVM-compatible chains can fully support the go-ethereum StateDb interface. // See https://github.com/cosmos/cosmos-sdk/pull/9403 for reference. func (g *infiniteGasMeter) RefundGas(amount Gas, descriptor string) { diff --git a/x/bank/README.md b/x/bank/README.md index 6f0a701bc3..62a781da66 100644 --- a/x/bank/README.md +++ b/x/bank/README.md @@ -1002,7 +1002,7 @@ Example Output: ### SendEnabled -The `SendEnabled` enpoints allows users to query the SendEnabled entries of the `bank` module. +The `SendEnabled` endpoints allows users to query the SendEnabled entries of the `bank` module. Any denominations NOT returned, use the `Params.DefaultSendEnabled` value. diff --git a/x/gov/types/config.go b/x/gov/types/config.go index d19767f7d1..b00d8fba2a 100644 --- a/x/gov/types/config.go +++ b/x/gov/types/config.go @@ -1,6 +1,6 @@ package types -// Config is a config struct used for intialising the gov module to avoid using globals. +// Config is a config struct used for initialising the gov module to avoid using globals. type Config struct { // MaxMetadataLen defines the maximum proposal metadata length. MaxMetadataLen uint64 diff --git a/x/params/README.md b/x/params/README.md index 372f0ce6e1..10b47da44e 100644 --- a/x/params/README.md +++ b/x/params/README.md @@ -76,4 +76,4 @@ Modules often define parameters as a proto message. The generated struct can imp * `KeyTable.RegisterParamSet()`: registers all parameters in the struct * `Subspace.{Get, Set}ParamSet()`: Get to & Set from the struct -The implementor should be a pointer in order to use `GetParamSet()`. +The implementer should be a pointer in order to use `GetParamSet()`.