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(x/gov): Return ErrInvalidProposalContent in SubmitProposal when legacy handler returns an error. (backport #13051) #15667

Merged
merged 1 commit into from
Apr 3, 2023

Commits on Apr 3, 2023

  1. fix(x/gov): Return ErrInvalidProposalContent in SubmitProposal when l…

    …egacy handler returns an error. (backport cosmos#13051)
    
    * [13030]: When a legacy gov proposal fails it's handler check, wrap the error in a ErrInvalidProposalContent (instead of ErrNoProposalHandlerExists).
    
    * [13030]: Add changelog entry.
    
    * [13030]: If the error is already a ErrNoProposalHandlerExists, just return it. Otherwise, wrap it as a ErrInvalidProposalContent.
    
    Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
    2 people authored and yihuang committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    64b5624 View commit details
    Browse the repository at this point in the history