-
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
fix: allow non-EOA accounts to stake in simulation #16068
fix: allow non-EOA accounts to stake in simulation #16068
Conversation
x/staking/simulation/operations.go
Outdated
@@ -394,7 +394,7 @@ func SimulateMsgUndelegate( | |||
} | |||
// if simaccount.PrivKey == nil, delegation address does not exist in accs. Return error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you update this comment and explain the reasoning of why an error isn't returned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review. You are right, the comment there needs to be updated. Sent a fix for review.
172d50c
to
7c71da5
Compare
Rebased to include merge conflicts in changelog |
Co-authored-by: Marko <marbar3778@yahoo.com> (cherry picked from commit ddf51cc) # Conflicts: # CHANGELOG.md # x/staking/simulation/operations.go
…6068) (cosmos#16130) Co-authored-by: Javier Su <javier.su.weijie@gmail.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
…6068) (cosmos#16130) Co-authored-by: Javier Su <javier.su.weijie@gmail.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
Description
Closes: #15879
When running x/staking simulations, it is assumed that all delegators are EOA accounts with a private key. Staking module allows cosmwasm contracts and other modules as delegators so running the simulation when another module is the delegator will fail with
Removed the check in simulation to allow non-EOA accounts to stake.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change