Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Feb 1, 2024
1 parent af5de48 commit 4043ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/mstaking/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,15 +376,15 @@ func (q Querier) DelegatorValidators(ctx context.Context, req *types.QueryDelega
func (q Querier) Pool(ctx context.Context, _ *types.QueryPoolRequest) (*types.QueryPoolResponse, error) {
bondedPool := q.GetBondedPool(ctx)
notBondedPool := q.GetNotBondedPool(ctx)
powerPowerWeights, err := q.GetVotingPowerWeights(ctx)
powerWeights, err := q.GetVotingPowerWeights(ctx)
if err != nil {
return nil, err
}

pool := types.NewPool(
q.bankKeeper.GetAllBalances(ctx, notBondedPool.GetAddress()),
q.bankKeeper.GetAllBalances(ctx, bondedPool.GetAddress()),
powerPowerWeights,
powerWeights,
)

return &types.QueryPoolResponse{Pool: pool}, nil
Expand Down

0 comments on commit 4043ddd

Please sign in to comment.