Skip to content

Commit

Permalink
fix: add pool params back to kyve params query (backport #159) (#165)
Browse files Browse the repository at this point in the history
Co-authored-by: Troy Kessler <43882936+troykessler@users.noreply.github.com>
  • Loading branch information
mergify[bot] and troykessler authored Dec 14, 2023
1 parent 68e5ff7 commit 4ee0754
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

An '!' indicates a state machine breaking change.

## [Unreleased]

### Bug Fixes

- (`x/query`) [#159](https://github.com/KYVENetwork/chain/pull/159) Add pool params back to kyve params query.

## [v1.4.0](https://github.com/KYVENetwork/chain/releases/tag/v1.4.0) - 2023-11-17

### Features
Expand Down
2 changes: 2 additions & 0 deletions x/query/keeper/grpc_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*t
globalParams := k.globalKeeper.GetParams(ctx)
govParams := k.govKeeper.GetParams(ctx)
sp := k.stakerKeeper.GetParams(ctx)
pp := k.poolKeeper.GetParams(ctx)
fp := k.fundersKeeper.GetParams(ctx)

return &types.QueryParamsResponse{
Expand All @@ -28,6 +29,7 @@ func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*t
GlobalParams: &globalParams,
GovParams: &govParams,
StakersParams: &sp,
PoolParams: &pp,
FundersParams: &fp,
}, nil
}

0 comments on commit 4ee0754

Please sign in to comment.