Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unexpected behavior in the StakingQueryDelegationsTo function #1261

Closed
1 task done
LucaPalla95 opened this issue Sep 18, 2024 · 1 comment
Closed
1 task done
Labels
bug Something isn't working

Comments

@LucaPalla95
Copy link
Contributor

What happened and what did you expect to happen?

I was using the StakingQueryDelegationsTo function to verify whether the delegations I made in previous steps were successfully recorded. Specifically, I had a situation where I staked a certain amount of tokens (Y) to validator X via self-bonding, and I also staked a smaller portion using a different account (custom delegator).
What I expected as output were two different delegations: one for the validator itself and one for the custom user (delegator). However, what I received instead were two rows containing the same information.
Image
I expected to receive something like:
Image

Describe how to reproduce the bug

I tried reproducing the bug multiple times by staking with different users and querying for delegations, and the bug was always present. I tried also different chains configurations.

version

Latest Version

Relevant logs or stack trace

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Reecepbcups
Copy link
Member

resolved in above PRs, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants