From 1003caba49573c9438e574b59f4a03a22f14a8fb Mon Sep 17 00:00:00 2001 From: chloefeal <188809157+chloefeal@users.noreply.github.com> Date: Sun, 29 Dec 2024 01:23:35 +0800 Subject: [PATCH] fix: typos (#23105) --- collections/README.md | 2 +- runtime/v2/manager.go | 2 +- server/v2/stf/README.md | 2 +- types/module/module.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/collections/README.md b/collections/README.md index d6d73da218ee..f2bca5101bc3 100644 --- a/collections/README.md +++ b/collections/README.md @@ -819,7 +819,7 @@ type BaseAccount struct { ``` First of all, when we save our accounts in state we map them using a primary key `sdk.AccAddress`. -If it were to be a `collections.Map` it would be `collections.Map[sdk.AccAddres, authtypes.BaseAccount]`. +If it were to be a `collections.Map` it would be `collections.Map[sdk.AccAddress, authtypes.BaseAccount]`. Then we also want to be able to get an account not only by its `sdk.AccAddress`, but also by its `AccountNumber`. diff --git a/runtime/v2/manager.go b/runtime/v2/manager.go index 7c0305d1badb..e47c807a50f8 100644 --- a/runtime/v2/manager.go +++ b/runtime/v2/manager.go @@ -413,7 +413,7 @@ func (m *MM[T]) TxValidators() func(ctx context.Context, tx T) error { // As an app developer, if you wish to skip running InitGenesis for your new // module "foo", you need to manually pass a `fromVM` argument to this function // foo's module version set to its latest ConsensusVersion. That way, the diff -// between the function's `fromVM` and `udpatedVM` will be empty, hence not +// between the function's `fromVM` and `updatedVM` will be empty, hence not // running anything for foo. // // Example: diff --git a/server/v2/stf/README.md b/server/v2/stf/README.md index 0c88ec66ec18..2f2ff1ca749f 100644 --- a/server/v2/stf/README.md +++ b/server/v2/stf/README.md @@ -31,4 +31,4 @@ type ( ) ``` -THe wrappGasMeter is used in order to consume gas. Application developers can seamlsessly replace the gas meter with their own implementation in order to customize consumption of gas. +THe wrapGasMeter is used in order to consume gas. Application developers can seamlsessly replace the gas meter with their own implementation in order to customize consumption of gas. diff --git a/types/module/module.go b/types/module/module.go index 714a9490d848..a96a3de85554 100644 --- a/types/module/module.go +++ b/types/module/module.go @@ -628,7 +628,7 @@ func (m *Manager) assertNoForgottenModules(setOrderFnName string, moduleNames [] // // Internally, RunMigrations will perform the following steps: // - create an `updatedVM` VersionMap of module with their latest ConsensusVersion -// - make a diff of `fromVM` and `udpatedVM`, and for each module: +// - make a diff of `fromVM` and `updatedVM`, and for each module: // - if the module's `fromVM` version is less than its `updatedVM` version, // then run in-place store migrations for that module between those versions. // - if the module does not exist in the `fromVM` (which means that it's a new module, @@ -643,7 +643,7 @@ func (m *Manager) assertNoForgottenModules(setOrderFnName string, moduleNames [] // As an app developer, if you wish to skip running InitGenesis for your new // module "foo", you need to manually pass a `fromVM` argument to this function // foo's module version set to its latest ConsensusVersion. That way, the diff -// between the function's `fromVM` and `udpatedVM` will be empty, hence not +// between the function's `fromVM` and `updatedVM` will be empty, hence not // running anything for foo. // // Example: