From e5a7389a98cd9c7b2c5cb6f2a45c67bab8da5612 Mon Sep 17 00:00:00 2001 From: emmmm <155267286+eeemmmmmm@users.noreply.github.com> Date: Tue, 29 Jul 2025 15:25:26 -0400 Subject: [PATCH] fix: multiple typos of different importance (#25026) Co-authored-by: Alex | Interchain Labs --- tests/integration/tx/benchmark/benchmarks_test.go | 3 --- testutil/types.go | 2 +- tools/confix/testdata/README.md | 2 +- tools/cosmovisor/README.md | 2 +- tools/cosmovisor/cmd/cosmovisor/init_test.go | 2 +- tools/cosmovisor/cmd/cosmovisor/run_config.go | 2 +- tools/cosmovisor/process.go | 2 +- types/address/hash.go | 2 +- types/mempool/mempool.go | 2 +- types/mempool/priority_nonce_spec.md | 2 +- types/module/module.go | 2 +- 11 files changed, 10 insertions(+), 13 deletions(-) diff --git a/tests/integration/tx/benchmark/benchmarks_test.go b/tests/integration/tx/benchmark/benchmarks_test.go index 477cf97c4a..27248bff50 100644 --- a/tests/integration/tx/benchmark/benchmarks_test.go +++ b/tests/integration/tx/benchmark/benchmarks_test.go @@ -94,9 +94,6 @@ func NewTxBenchmarkSuite(tb testing.TB) *TxBenchmarkSuite { assert.NilError(tb, err) s.txHeight = resp.Height - assert.NilError(tb, err) - s.txHeight = resp.Height - return s } diff --git a/testutil/types.go b/testutil/types.go index 2e2637ff3a..0d2ecf8abe 100644 --- a/testutil/types.go +++ b/testutil/types.go @@ -1,6 +1,6 @@ package testutil -// This file contains the list of module names are that maintained by the SDK team. +// This file contains the list of module names that are maintained by the SDK team. // Those constants are defined here to be used in the SDK without importing those modules. const ( diff --git a/tools/confix/testdata/README.md b/tools/confix/testdata/README.md index 0b41fbb581..9ad366b592 100644 --- a/tools/confix/testdata/README.md +++ b/tools/confix/testdata/README.md @@ -18,7 +18,7 @@ git checkout release/v0.47.x # Install dependencies make install -# Confirm you go the version you expected, and generate the file. +# Confirm you got the version you expected, and generate the file. simd version simd init test --chain-id test diff --git a/tools/cosmovisor/README.md b/tools/cosmovisor/README.md index 3b5f722c5d..7c70611ffe 100644 --- a/tools/cosmovisor/README.md +++ b/tools/cosmovisor/README.md @@ -188,7 +188,7 @@ When the upgrade mechanism is triggered, `cosmovisor` will: `cosmovisor` has an `add-upgrade` command that allows to easily link a binary to an upgrade. It creates a new folder in `cosmovisor/upgrades/` and copies the provided executable file to `cosmovisor/upgrades//bin/`. -Using the `--upgrade-height` flag allows to specify at which height the binary should be switched, without going via a gorvernance proposal. +Using the `--upgrade-height` flag allows to specify at which height the binary should be switched, without going via a governance proposal. This enables support for an emergency coordinated upgrades where the binary must be switched at a specific height, but there is no time to go through a governance proposal. :::warning diff --git a/tools/cosmovisor/cmd/cosmovisor/init_test.go b/tools/cosmovisor/cmd/cosmovisor/init_test.go index 35a73348cc..2cb30c00fe 100644 --- a/tools/cosmovisor/cmd/cosmovisor/init_test.go +++ b/tools/cosmovisor/cmd/cosmovisor/init_test.go @@ -92,7 +92,7 @@ func (s *InitTestSuite) clearEnv() *cosmovisorInitEnv { // setEnv sets environment variables to the values provided. // If t is not nil, and there's a problem, the test will fail immediately. // If t is nil, problems will just be logged using s.T(). -func (s *InitTestSuite) setEnv(t *testing.T, env *cosmovisorInitEnv) { //nolint:thelper // false psotive +func (s *InitTestSuite) setEnv(t *testing.T, env *cosmovisorInitEnv) { //nolint:thelper // false positive if t == nil { s.T().Logf("Restoring environment variables.") } diff --git a/tools/cosmovisor/cmd/cosmovisor/run_config.go b/tools/cosmovisor/cmd/cosmovisor/run_config.go index f025b06eb6..abb9fd9ae2 100644 --- a/tools/cosmovisor/cmd/cosmovisor/run_config.go +++ b/tools/cosmovisor/cmd/cosmovisor/run_config.go @@ -5,7 +5,7 @@ import ( "os" ) -// DefaultRunConfig defintes a default RunConfig that writes to os.Stdout and os.Stderr +// DefaultRunConfig defines a default RunConfig that writes to os.Stdout and os.Stderr var DefaultRunConfig = RunConfig{ StdIn: os.Stdin, StdOut: os.Stdout, diff --git a/tools/cosmovisor/process.go b/tools/cosmovisor/process.go index e2bb122d8b..81414a23c4 100644 --- a/tools/cosmovisor/process.go +++ b/tools/cosmovisor/process.go @@ -312,7 +312,7 @@ func (l Launcher) WaitForUpgradeOrExit(cmd *exec.Cmd) (bool, error) { if err == nil { return false, nil } - // the app x/upgrade causes a panic and the app can die before the filwatcher finds the + // the app x/upgrade causes a panic and the app can die before the filewatcher finds the // update, so we need to recheck update-info file. if !l.fw.CheckUpdate(currentUpgrade) { return false, err diff --git a/types/address/hash.go b/types/address/hash.go index 1847114a0d..73d34e3698 100644 --- a/types/address/hash.go +++ b/types/address/hash.go @@ -48,7 +48,7 @@ func Compose(typ string, subAddresses []Addressable) ([]byte, error) { a := subAddresses[i].Address() as[i], err = LengthPrefix(a) if err != nil { - return nil, fmt.Errorf("not compatible sub-adddress=%v at index=%d [%w]", a, i, err) + return nil, fmt.Errorf("not compatible sub-address=%v at index=%d [%w]", a, i, err) } totalLen += len(as[i]) } diff --git a/types/mempool/mempool.go b/types/mempool/mempool.go index 968f2d9476..291e0f981f 100644 --- a/types/mempool/mempool.go +++ b/types/mempool/mempool.go @@ -24,7 +24,7 @@ type Mempool interface { Remove(sdk.Tx) error } -// ExtMempool is a extension of Mempool interface introduced in v0.50 +// ExtMempool is an extension of Mempool interface introduced in v0.50 // for not be breaking in a patch release. // In v0.52+, this interface will be merged into Mempool interface. type ExtMempool interface { diff --git a/types/mempool/priority_nonce_spec.md b/types/mempool/priority_nonce_spec.md index cc24fa1dae..ae271e5d62 100644 --- a/types/mempool/priority_nonce_spec.md +++ b/types/mempool/priority_nonce_spec.md @@ -143,4 +143,4 @@ graph TD Mempool order: [10, 15, 30, 8, 20, 6, 4, 2, 90] -This case shows how the mempool handles a more complex graph with more priority edges between senders. Again we also demonstrate an idiosyncrasy of this nonce/priroity ordering scheme, tx(priority=90) is selected last because it is gated behind tx(priority=2) by nonce ordering. +This case shows how the mempool handles a more complex graph with more priority edges between senders. Again we also demonstrate an idiosyncrasy of this nonce/priority ordering scheme, tx(priority=90) is selected last because it is gated behind tx(priority=2) by nonce ordering. diff --git a/types/module/module.go b/types/module/module.go index 4fd9adcfc7..9c1110a379 100644 --- a/types/module/module.go +++ b/types/module/module.go @@ -198,7 +198,7 @@ type HasABCIGenesis interface { // AppModule is the form for an application module. Most of // its functionality has been moved to extension interfaces. -// Deprecated: use appmodule.AppModule with a combination of extension interfaes interfaces instead. +// Deprecated: use appmodule.AppModule with a combination of extension interfaces interfaces instead. type AppModule interface { appmodule.AppModule