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: validation on governance proposals #9791

Merged
merged 3 commits into from
Oct 16, 2023

Conversation

EVODelavega
Copy link
Contributor

@EVODelavega EVODelavega requested a review from ze97286 October 16, 2023 11:19
@EVODelavega EVODelavega requested a review from a team as a code owner October 16, 2023 11:19
@EVODelavega EVODelavega force-pushed the 9788-transfer-funds-validation branch 2 times, most recently from 8ac66bc to 28df2e7 Compare October 16, 2023 12:20
@EVODelavega EVODelavega force-pushed the 9788-transfer-funds-validation branch from 28df2e7 to c7e8b25 Compare October 16, 2023 14:20
return errs.FinalAddForProperty("proposal_submission.terms.change.new_transfer.changes.source", ErrIsNotValid)
}
// destination == source
if dest == changes.SourceType && changes.Source == changes.Destination {
Copy link
Contributor

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?

Copy link
Contributor Author

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]>
@EVODelavega EVODelavega merged commit e540a44 into develop Oct 16, 2023
15 checks passed
@EVODelavega EVODelavega deleted the 9788-transfer-funds-validation branch October 16, 2023 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Transfer account validation to account for network treasury
2 participants