-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Track delegation not work for vesting account #8601
Comments
@litvintech Would you like to create a PR with a test? |
Continuous and delayed accounts do track delegations and undelegations. I cannot speak for periodic account types because that was an external contribution. |
Thank you very much for taking the time to file this issue and contribute to making Cosmos SDK better. @litvintech dixit:
True that, and yet cosmos-sdk/x/bank/keeper/keeper.go Line 367 in 8f7cdaf
cosmos-sdk/x/bank/keeper/send.go Line 216 in 8f7cdaf
Which in turn sets the new balance for the account: cosmos-sdk/x/bank/keeper/send.go Line 270 in 8f7cdaf
@litvintech can you write a test case, please? Meanwhile, I'm labeling this accordingly. |
Haven't used v0.41, but cosmos-sdk/x/bank/keeper/keeper.go Line 117 in 4b4768d
cosmos-sdk/x/bank/keeper/keeper.go Line 423 in 4b4768d
|
… vesting accounts (#8865) Delegations and undelegations calculations performed during accounting operations for vesting accounts were correct but were not written back to the account store. closes: #8601 closes: #8812 Co-authored-by: Alessio Treglia <[email protected]> Co-authored-by: Aleksandr Bezobchuk <[email protected]> Co-authored-by: Jonathan Gimeno <[email protected]> Co-authored-by: Frojdi Dymylja <[email protected]> Co-authored-by: Adam Bozanich <[email protected]> Co-authored-by: Amaury <[email protected]> Co-authored-by: SaReN <[email protected]>
Summary of Bug
Delegation (and undelegation) from vesting account are not tracked. I tried to make delegation from account (in my case periodic vesting account) and found that there are no updates to delegated vesting amount.
Looking to the code, there is not SetAccount here
Note: it was worked in 0.39.0
Version
SDK 0.41.0
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: