-
Notifications
You must be signed in to change notification settings - Fork 22
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: validation on governance proposals #9791
Conversation
8ac66bc
to
28df2e7
Compare
Signed-off-by: Elias Van Ootegem <[email protected]>
Signed-off-by: Elias Van Ootegem <[email protected]>
28df2e7
to
c7e8b25
Compare
return errs.FinalAddForProperty("proposal_submission.terms.change.new_transfer.changes.source", ErrIsNotValid) | ||
} | ||
// destination == source | ||
if dest == changes.SourceType && changes.Source == changes.Destination { |
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.
doesn't this apply to any source type?
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.
It does, but because of the map, I believe the only one where this check is actually required is market insurance pools
Signed-off-by: Elias Van Ootegem <[email protected]>
Closes #9788
Based the validation on the spec: https://github.com/vegaprotocol/specs/blob/cosmicelevator/protocol/0028-GOVE-governance.md#permitted-source-and-destination-account-types