docs: fix typos in comments / code (#25059)
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
parent
347f076365
commit
403377fe53
@ -159,7 +159,7 @@ func (c *Context) Validate() error {
|
||||
md := sd.Methods().Get(j).Input()
|
||||
_, hasCustomSigner := c.customGetSignerFuncs[md.FullName()]
|
||||
if _, err := getSignersFieldNames(md); err == nil && hasCustomSigner {
|
||||
errs = append(errs, fmt.Errorf("a custom signer function as been defined for message %s which already has a signer field defined with (cosmos.msg.v1.signer)", md.FullName()))
|
||||
errs = append(errs, fmt.Errorf("a custom signer function has been defined for message %s which already has a signer field defined with (cosmos.msg.v1.signer)", md.FullName()))
|
||||
continue
|
||||
}
|
||||
_, err := c.getGetSignersFn(md)
|
||||
|
||||
@ -288,7 +288,7 @@ func TestDefineCustomGetSigners(t *testing.T) {
|
||||
})
|
||||
context, err = NewContext(options)
|
||||
require.NoError(t, err)
|
||||
require.ErrorContains(t, context.Validate(), "a custom signer function as been defined for message SimpleSigner")
|
||||
require.ErrorContains(t, context.Validate(), "a custom signer function has been defined for message SimpleSigner")
|
||||
}
|
||||
|
||||
type dummyAddressCodec struct{}
|
||||
|
||||
@ -39,7 +39,7 @@ func TestTimestampJSONTestcasesTestData(t *testing.T) {
|
||||
// Tests to ensure that we compare standardized forms of the final timestamppb.Timestamp.
|
||||
// Please see issue https://github.com/cosmos/cosmos-sdk/issues/15761
|
||||
func TestTimestampJsonTestcasesExtraneousNanos(t *testing.T) {
|
||||
testTimestampJSONTestcases(t, []byte(`[{"proto":{"nAnos":1000000000},"text":"1970-01-01T00:00:01Z"}]`))
|
||||
testTimestampJSONTestcases(t, []byte(`[{"proto":{"nanos":1000000000},"text":"1970-01-01T00:00:01Z"}]`))
|
||||
}
|
||||
|
||||
func testTimestampJSONTestcases(t *testing.T, raw []byte) {
|
||||
|
||||
@ -204,7 +204,7 @@ func (vr txValueRenderer) Parse(ctx context.Context, screens []Screen) (protoref
|
||||
for i := range screens {
|
||||
parsable[i+1].Indent = screens[i].Indent + 1
|
||||
|
||||
// Take same text, except that we weplace:
|
||||
// Take same text, except that we replace:
|
||||
// "This transaction has <N> Message"
|
||||
// with:
|
||||
// "Message: <N> Any"
|
||||
|
||||
@ -114,7 +114,7 @@ func TestTxJSONTestcases(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// createTextualData creates a Textual data give then JSON
|
||||
// createTextualData creates a Textual data given the JSON
|
||||
// test case.
|
||||
func createTextualData(t *testing.T, jsonTx txJSONTestTx, jsonSignerData json.RawMessage) (*txv1beta1.TxBody, []byte, *txv1beta1.AuthInfo, []byte, signing.SignerData) {
|
||||
t.Helper()
|
||||
|
||||
@ -375,7 +375,7 @@ func TestDumpUpgradeInfoToFile(t *testing.T) {
|
||||
upgradeInfo, err := s.keeper.ReadUpgradeInfoFromDisk()
|
||||
require.NoError(t, err)
|
||||
|
||||
t.Log("Verify upgrade height from file matches ")
|
||||
t.Log("Verify upgrade height from file matches")
|
||||
require.Equal(t, upgradeInfo.Height, planHeight)
|
||||
require.Equal(t, upgradeInfo.Name, plan.Name)
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ import (
|
||||
// UpgradeInfoFileName file to store upgrade information
|
||||
// use x/upgrade/types.UpgradeInfoFilename instead.
|
||||
//
|
||||
// Deprecated:will be removed in the future.
|
||||
// Deprecated: will be removed in the future.
|
||||
const UpgradeInfoFileName string = "upgrade-info.json"
|
||||
|
||||
type Keeper struct {
|
||||
|
||||
@ -9,7 +9,7 @@ import (
|
||||
// UpgradeHandler specifies the type of function that is called when an upgrade
|
||||
// is applied.
|
||||
//
|
||||
// `fromVM` is a VersionMap of moduleName to fromVersion (unit64), where
|
||||
// `fromVM` is a VersionMap of moduleName to fromVersion (uint64), where
|
||||
// fromVersion denotes the version from which we should migrate the module, the
|
||||
// target version being the module's latest version in the return VersionMap,
|
||||
// let's call it `toVM`.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user