fix: correct spelling inconsistencies throughout the codebase (#24963)

This commit is contained in:
bigbear 2025-07-22 21:14:55 +03:00 committed by GitHub
parent 5fe18220af
commit feec26d705
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 9 additions and 9 deletions

View File

@ -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)

View File

@ -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:
//

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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) {

View File

@ -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.

View File

@ -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

View File

@ -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()`.