Skip to content

Commit

Permalink
[BP: v7 <- #1262] fix(query): StakingQueryDelegationsTo reusing the…
Browse files Browse the repository at this point in the history
… same object (#1264)

Co-authored-by: Luca Palla <[email protected]>
  • Loading branch information
mergify[bot] and LucaPalla95 authored Sep 20, 2024
1 parent c51068e commit 689fe03
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 689fe03

Please sign in to comment.