From ed1e4366839bb3b8a36e2be74fd00161b058f016 Mon Sep 17 00:00:00 2001 From: Luca Palla <100412354+LucaPalla95@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:17:09 +0200 Subject: [PATCH] Fix StakingQueryDelegationsTo function (#1262) --- chain/cosmos/module_staking.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chain/cosmos/module_staking.go b/chain/cosmos/module_staking.go index f37ef4f17..ce3afbb22 100644 --- a/chain/cosmos/module_staking.go +++ b/chain/cosmos/module_staking.go @@ -109,8 +109,8 @@ func (c *CosmosChain) StakingQueryDelegationsTo(ctx context.Context, validator s } 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, nil