Skip to content

Commit

Permalink
Fix StakingQueryDelegationsTo function (#1262)
Browse files Browse the repository at this point in the history
(cherry picked from commit ed1e436)
  • Loading branch information
LucaPalla95 authored and mergify[bot] committed Sep 18, 2024
1 parent c51068e commit 803df19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/cosmos/module_staking.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func (c *CosmosChain) StakingQueryDelegationsTo(ctx context.Context, validator s
ValidatorDelegations(ctx, &stakingtypes.QueryValidatorDelegationsRequest{ValidatorAddr: validator})

var delegations []*stakingtypes.DelegationResponse
for _, d := range res.DelegationResponses {
delegations = append(delegations, &d)
for i := range res.DelegationResponses {
delegations = append(delegations, &res.DelegationResponses[i])
}

return delegations, err
Expand Down

0 comments on commit 803df19

Please sign in to comment.