Skip to content

Commit

Permalink
refactor(dogfood): merge query_params.go
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Feb 6, 2024
1 parent 15e8e8a commit 92be565
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
18 changes: 18 additions & 0 deletions x/dogfood/keeper/query.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
package keeper

import (
"context"

"github.com/ExocoreNetwork/exocore/x/dogfood/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

sdk "github.com/cosmos/cosmos-sdk/types"
)

var _ types.QueryServer = Keeper{}

func (k Keeper) Params(
goCtx context.Context,
req *types.QueryParamsRequest,
) (*types.QueryParamsResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "invalid request")
}
ctx := sdk.UnwrapSDKContext(goCtx)

return &types.QueryParamsResponse{Params: k.GetParams(ctx)}, nil
}
19 changes: 0 additions & 19 deletions x/dogfood/keeper/query_params.go

This file was deleted.

0 comments on commit 92be565

Please sign in to comment.