-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Remove Redundant Staking Errors #5450
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm happy to help refactoring these errors, but I'm a bit unsure about how to proceed accordingly - technically, almost all of these errors appear to encompass |
Handling this issue via #9231. Please let me know if further error deprecation/refactoring is required |
Sorry, accidentally closed this |
Many of the sentinel errors in
x/staking
are redundant. Typically, these errors are used and returned on invalid input. They should be removed in favor ofsdkerrors.ErrInvalidRequest
. Typically, this error will be wrapped with additional context on the exact validation error/issue.ref: #5429 (comment)
/cc @fedekunze
For Admin Use
The text was updated successfully, but these errors were encountered: