chore: fix some function names in comment (#23008)
Signed-off-by: fudancoder <fudancoder@icloud.com.>
This commit is contained in:
@@ -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
@@ -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
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user