From 9e42afa55560b63db82db08f0a90ac68ee7d1a88 Mon Sep 17 00:00:00 2001 From: Ocenka Date: Mon, 23 Dec 2024 20:23:08 +0000 Subject: [PATCH] fix: grammatical typos (#4145) This PR addresses and corrects grammatical errors in comments across multiple files. Specifically, it replaces the incorrect usage of "a" with "an" before words starting with vowel sounds. The affected files include: - `ante.go` - `export.go` - `namespace.go` - `keys.go` --- app/ante/ante.go | 2 +- app/export.go | 2 +- test/util/testfactory/namespace.go | 2 +- x/signal/types/keys.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/ante/ante.go b/app/ante/ante.go index c82313b65e..551a0ab87d 100644 --- a/app/ante/ante.go +++ b/app/ante/ante.go @@ -78,7 +78,7 @@ func NewAnteHandler( NewGovProposalDecorator(), // Side effect: increment the nonce for all tx signers. ante.NewIncrementSequenceDecorator(accountKeeper), - // Ensure that the tx is not a IBC packet or update message that has already been processed. + // Ensure that the tx is not an IBC packet or update message that has already been processed. ibcante.NewRedundantRelayDecorator(channelKeeper), ) } diff --git a/app/export.go b/app/export.go index a49df5b1db..0a74812e76 100644 --- a/app/export.go +++ b/app/export.go @@ -69,7 +69,7 @@ func (app *App) getExportHeight(forZeroHeight bool) int64 { func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) { applyAllowedAddrs := false - // check if there is a allowed address list + // check if there is an allowed address list if len(jailAllowedAddrs) > 0 { applyAllowedAddrs = true } diff --git a/test/util/testfactory/namespace.go b/test/util/testfactory/namespace.go index 147cc298dd..58aa605714 100644 --- a/test/util/testfactory/namespace.go +++ b/test/util/testfactory/namespace.go @@ -34,7 +34,7 @@ func RandomBlobNamespaces(rand *tmrand.Rand, count int) (namespaces []share.Name return namespaces } -// isBlobNamespace returns an true if this namespace is a valid user-specifiable +// isBlobNamespace returns a true if this namespace is a valid user-specifiable // blob namespace. func isBlobNamespace(namespace share.Namespace) bool { if namespace.IsReserved() { diff --git a/x/signal/types/keys.go b/x/signal/types/keys.go index c6925cd994..825380e976 100644 --- a/x/signal/types/keys.go +++ b/x/signal/types/keys.go @@ -1,7 +1,7 @@ package types var ( - // UpgradeKey is the key in the signal store used to persist a upgrade if one is + // UpgradeKey is the key in the signal store used to persist an upgrade if one is // pending. UpgradeKey = []byte{0x00}