diff --git a/ignite/pkg/chaincmd/chaincmd.go b/ignite/pkg/chaincmd/chaincmd.go index 7034b789e5..ad76283fa4 100644 --- a/ignite/pkg/chaincmd/chaincmd.go +++ b/ignite/pkg/chaincmd/chaincmd.go @@ -20,12 +20,12 @@ const ( commandGentx = "gentx" commandCollectGentxs = "collect-gentxs" commandValidateGenesis = "validate" + commandExportGenssis = "export" commandShowNodeID = "show-node-id" commandStatus = "status" commandTx = "tx" commandQuery = "query" commandUnsafeReset = "unsafe-reset-all" - commandExport = "export" commandTendermint = "tendermint" optionHome = "--home" @@ -488,7 +488,8 @@ func (c ChainCmd) UnsafeResetCommand() step.Option { // ExportCommand returns the command to export the state of the blockchain into a genesis file. func (c ChainCmd) ExportCommand() step.Option { command := []string{ - commandExport, + commandGenesis, + commandExportGenssis, } return c.daemonCommand(command) } diff --git a/ignite/pkg/cosmosbuf/buf.go b/ignite/pkg/cosmosbuf/buf.go index d7a2a1081f..43901375a0 100644 --- a/ignite/pkg/cosmosbuf/buf.go +++ b/ignite/pkg/cosmosbuf/buf.go @@ -33,7 +33,7 @@ const ( // CMDGenerate generate command. CMDGenerate Command = "generate" - CMDExport Command = "export" + CMDExport Command = "genesis export" CMDDep Command = "dep" specCacheNamespace = "generate.buf" diff --git a/ignite/templates/module/create/files/base/x/{{moduleName}}/module/module.go.plush b/ignite/templates/module/create/files/base/x/{{moduleName}}/module/module.go.plush index 18a60e9c5b..4d048b2b86 100644 --- a/ignite/templates/module/create/files/base/x/{{moduleName}}/module/module.go.plush +++ b/ignite/templates/module/create/files/base/x/{{moduleName}}/module/module.go.plush @@ -18,6 +18,7 @@ import ( authtypes "cosmossdk.io/x/auth/types" govtypes "cosmossdk.io/x/gov/types" "github.com/grpc-ecosystem/grpc-gateway/runtime" + "google.golang.org/grpc" <%= if (isIBC) { %>porttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types" capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper" @@ -127,9 +128,9 @@ func NewAppModule( } // RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries -func (am AppModule) RegisterServices(cfg module.Configurator) { - types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) - types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServerImpl(am.keeper)) +func (am AppModule) RegisterServices(registrar grpc.ServiceRegistrar) { + types.RegisterMsgServer(registrar, keeper.NewMsgServerImpl(am.keeper)) + types.RegisterQueryServer(registrar, keeper.NewQueryServerImpl(am.keeper)) } // InitGenesis performs the module's genesis initialization. It returns no validator updates.