Skip to content

Commit

Permalink
docs(x/genutil): audit genutil (#21471)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt authored Aug 30, 2024
1 parent 185676a commit efb11b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions x/genutil/client/cli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import (
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
)

// TODO(serverv2): remove app exporter notion that is server v1 specific

type genesisMM interface {
DefaultGenesis() map[string]json.RawMessage
ValidateGenesis(genesisData map[string]json.RawMessage) error
Expand Down
2 changes: 1 addition & 1 deletion x/genutil/v2/cli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type genesisMM interface {

// Commands adds core sdk's sub-commands into genesis command.
func Commands(genutilModule genutil.AppModule, genMM genesisMM, appExport v2.AppExporter) *cobra.Command {
return CommandsWithCustomMigrationMap(genutilModule, genMM, appExport, genutiltypes.MigrationMap{})
return CommandsWithCustomMigrationMap(genutilModule, genMM, appExport, cli.MigrationMap)
}

// CommandsWithCustomMigrationMap adds core sdk's sub-commands into genesis command with custom migration map.
Expand Down
5 changes: 5 additions & 0 deletions x/genutil/v2/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// v2 contains logic and CLI used for genutil by server/v2 / runtime/v2 applications.
// It contains the AppExporter struct which is used when exporting the application state.
// Additionnaly it holds the a custom Export command specific to the v2 application.
// The rest of the CLI commands are the same as the ones in the genutil module.
package v2

0 comments on commit efb11b3

Please sign in to comment.