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

fix(query): StakingQueryDelegationsTo reusing the same object #1262

Conversation

LucaPalla95
Copy link
Contributor

Related to Issue #1261

This fix avoids reusing the same object during each iteration of the loop, preventing all elements in delegations from pointing to the same "d".

Update the function to correctly return the amount of staking for each delegator to a specific validator.
Copy link

vercel bot commented Sep 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
interchaintest-docs ⬜️ Ignored (Inspect) Visit Preview Sep 18, 2024 1:21pm

@Reecepbcups Reecepbcups added the BACKPORT backport into all maintained branches label Sep 18, 2024
@Reecepbcups Reecepbcups enabled auto-merge (squash) September 18, 2024 13:24
@Reecepbcups Reecepbcups changed the title Fix StakingQueryDelegationsTo function fix(query): StakingQueryDelegationsTo reusing the same object Sep 18, 2024
@Reecepbcups Reecepbcups merged commit ed1e436 into strangelove-ventures:main Sep 18, 2024
18 checks passed
mergify bot pushed a commit that referenced this pull request Sep 18, 2024
Reecepbcups pushed a commit that referenced this pull request Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BACKPORT backport into all maintained branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants