chore: fix some function names in comment (#23008)

Signed-off-by: fudancoder <fudancoder@icloud.com.>
This commit is contained in:
fudancoder
2024-12-19 15:47:48 +00:00
committed by GitHub
parent a9c1149155
commit 69025c5566
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ func NewMultisig(n int) *signing.MultiSignatureData {
}
}
// GetIndex returns the index of pk in keys. Returns -1 if not found
// getIndex returns the index of pk in keys. Returns -1 if not found
func getIndex(pk types.PubKey, keys []types.PubKey) int {
for i := 0; i < len(keys); i++ {
if pk.Equals(keys[i]) {
+2 -2
View File
@@ -435,7 +435,7 @@ func (i *Int) UnmarshalJSON(bz []byte) error {
return unmarshalJSON(i.i, bz)
}
// MarshalJSON for custom encoding scheme
// marshalJSON for custom encoding scheme
// Must be encoded as a string for JSON precision
func marshalJSON(i encoding.TextMarshaler) ([]byte, error) {
text, err := i.MarshalText()
@@ -446,7 +446,7 @@ func marshalJSON(i encoding.TextMarshaler) ([]byte, error) {
return json.Marshal(string(text))
}
// UnmarshalJSON for custom decoding scheme
// unmarshalJSON for custom decoding scheme
// Must be encoded as a string for JSON precision
func unmarshalJSON(i *big.Int, bz []byte) error {
var text string
+1 -1
View File
@@ -68,7 +68,7 @@ type coreKVStore struct {
kvStore storetypes.KVStore
}
// NewKVStore returns a wrapper of Core/Store kvstore interface
// newKVStore returns a wrapper of Core/Store kvstore interface
func newKVStore(store storetypes.KVStore) store.KVStore {
return coreKVStore{kvStore: store}
}
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keyring"
)
// initAppConfig helps to override default client config template and configs.
// initClientConfig helps to override default client config template and configs.
// return "", nil if no custom configuration is required for the application.
func initClientConfig() (string, interface{}) {
type GasConfig struct {
+1 -1
View File
@@ -148,7 +148,7 @@ func (tx StdTx) GetSignaturesV2() ([]signing.SignatureV2, error) {
return res, nil
}
// GetPubkeys returns the pubkeys of signers if the pubkey is included in the signature
// GetPubKeys returns the pubkeys of signers if the pubkey is included in the signature
// If pubkey is not included in the signature, then nil is in the slice instead
func (tx StdTx) GetPubKeys() ([]cryptotypes.PubKey, error) {
pks := make([]cryptotypes.PubKey, len(tx.Signatures))