Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
8486e3a5c7
commit
31b4c2e26b
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
5
x/genutil/v2/doc.go
Normal file
5
x/genutil/v2/doc.go
Normal file
@ -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
|
||||
Loading…
Reference in New Issue
Block a user