diff --git a/chain/cosmos/module_staking.go b/chain/cosmos/module_staking.go index 0d7ba251e..99d0cf4c8 100644 --- a/chain/cosmos/module_staking.go +++ b/chain/cosmos/module_staking.go @@ -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