Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!fix: Fix bug with cmd query #112

Merged
merged 2 commits into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions x/multi-staking/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,11 @@ func (AppModuleBasic) GetTxCmd() *cobra.Command {
}

// GetQueryCmd returns the multi-staking and staking module's root query command.
func (AppModuleBasic) GetQueryCmd() (queryCmd *cobra.Command) {
queryCmd.AddCommand(
stakingcli.GetQueryCmd(),
cli.GetQueryCmd(),
)
func (AppModuleBasic) GetQueryCmd() *cobra.Command {
cmd := stakingcli.GetQueryCmd()
cmd.AddCommand(cli.GetQueryCmd())

return queryCmd
return cmd
}

// AppModule embeds the Cosmos SDK's x/staking AppModule where we only override
Expand Down Expand Up @@ -138,6 +136,9 @@ func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sd
func (am AppModule) RegisterServices(cfg module.Configurator) {
stakingtypes.RegisterMsgServer(cfg.MsgServer(), multistakingkeeper.NewMsgServerImpl(am.keeper))
multistakingtypes.RegisterQueryServer(cfg.QueryServer(), multistakingkeeper.NewQueryServerImpl(am.keeper))

querier := stakingkeeper.Querier{Keeper: am.sk}
stakingtypes.RegisterQueryServer(cfg.QueryServer(), querier)
}

// InitGenesis initial genesis state for feeabs module
Expand Down
Loading