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: check coins are positive in lockup ValidateBasic #2180

Merged
merged 3 commits into from
Jul 22, 2022

Conversation

czarcas7ic
Copy link
Member

Closes: #XXX

What is the purpose of the change

@ValarDragon had mentioned that the fact ValidateBasic was not catching zero amount lockups in the simulator was a bug. This fixes that bug.

Brief Changelog

  • Ensures all coins in MsgLockTokens are positive

Testing and Verifying

To test that this worked, I made every lockup have a zero amount in the simulator and ran it through the ValidateBasic. No lockups errored.

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes? no
  • Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? no
  • How is the feature or change documented? not applicable

@czarcas7ic czarcas7ic marked this pull request as ready for review July 21, 2022 16:38
@czarcas7ic czarcas7ic requested a review from a team July 21, 2022 16:38
x/lockup/types/msgs.go Show resolved Hide resolved
@ValarDragon ValarDragon merged commit 8d86c70 into main Jul 22, 2022
@ValarDragon ValarDragon deleted the adam/lockup-validate-patch branch July 22, 2022 13:52
@czarcas7ic czarcas7ic mentioned this pull request Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants