Skip to content

Commit

Permalink
keeper updates
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Mar 9, 2022
1 parent 39ba0b4 commit ee3e64e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions x/superfluid/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import (
var _ types.QueryServer = Keeper{}

// Params returns the superfluid module params
func (k Keeper) Params(goCtx context.Context, req *types.ParamsRequest) (*types.ParamsResponse, error) {
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)

params := k.GetParams(ctx)

return &types.ParamsResponse{
return &types.QueryParamsResponse{
Params: params,
}, nil
}
Expand Down
2 changes: 1 addition & 1 deletion x/superfluid/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

func (suite *KeeperTestSuite) TestGRPCParams() {
suite.SetupTest()
res, err := suite.App.SuperfluidKeeper.Params(sdk.WrapSDKContext(suite.Ctx), &types.ParamsRequest{})
res, err := suite.App.SuperfluidKeeper.Params(sdk.WrapSDKContext(suite.Ctx), &types.QueryParamsRequest{})
suite.Require().NoError(err)
suite.Require().True(res.Params.MinimumRiskFactor.Equal(types.DefaultParams().MinimumRiskFactor))
}
Expand Down

0 comments on commit ee3e64e

Please sign in to comment.