Skip to content

Commit

Permalink
more update
Browse files Browse the repository at this point in the history
  • Loading branch information
sontrinh16 committed Aug 20, 2024
1 parent 9ab9af2 commit 3644ba1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/v2/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,11 @@ func (m *MM[T]) TxValidators() func(ctx context.Context, tx T) error {
//
// Internally, RunMigrations will perform the following steps:
// - create an `updatedVM` VersionMap of module with their latest ConsensusVersion
//
// -
// - get the current consensus version as toVersion. Get fromVersion from `fromVM`
// - if module implements `HasConsensusVersion` interface get the consensus version as `toVersion`,
// if not `toVersion` is set to 0.
// - get `fromVersion` from `fromVM` with module's name.
// - if the module's name exists in `fromVM` map, then run in-place store migrations
// for that module between fromVersion and toVersion.
// for that module between `fromVersion` and `toVersion`.
// - if the module does not exist in the `fromVM` (which means that it's a new module,
// because it was not in the previous x/upgrade's store), then run
// `InitGenesis` on that module.
Expand Down

0 comments on commit 3644ba1

Please sign in to comment.