cosmos-sdk/x/gov
Daniel Wedul 20b947e990
fix(x/gov): Return ErrInvalidProposalContent in SubmitProposal when legacy handler returns an error. (#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>
2022-08-26 13:29:58 -04:00
..
client chore: downgrade to tendermint v0.34.x (#12958) 2022-08-20 02:33:07 +02:00
exported feat: deprecate x/params usage in x/gov (#12631) 2022-08-01 16:53:04 +00:00
keeper fix(x/gov): Return ErrInvalidProposalContent in SubmitProposal when legacy handler returns an error. (#13051) 2022-08-26 13:29:58 -04:00
migrations feat: x/group tests to mocks (#12864) 2022-08-22 12:37:05 +00:00
simulation chore: fix linting issues exposed by fixing golangci-lint (#12895) 2022-08-11 22:00:24 +02:00
spec docs: update sdk & tm version links in docs (#12976) 2022-08-20 08:42:13 +02:00
testutil test(gov): Refactor x/gov keeper tests to use mocks (#12988) 2022-08-25 20:15:44 +00:00
types chore: fix linting issues exposed by fixing golangci-lint (#12895) 2022-08-11 22:00:24 +02:00
abci_test.go feat: deprecate x/params usage in x/gov (#12631) 2022-08-01 16:53:04 +00:00
abci.go feat: deprecate x/params usage in x/gov (#12631) 2022-08-01 16:53:04 +00:00
common_test.go chore: math lib update and type fixes (#12791) 2022-08-02 11:16:40 +00:00
genesis_test.go feat: deprecate x/params usage in x/gov (#12631) 2022-08-01 16:53:04 +00:00
genesis.go chore: fix linting issues exposed by fixing golangci-lint (#12895) 2022-08-11 22:00:24 +02:00
module_test.go refactor!: use injected encoding params in simapp (#12717) 2022-07-27 15:21:10 +02:00
module.go chore: fix linting issues exposed by fixing golangci-lint (#12895) 2022-08-11 22:00:24 +02:00
README.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00

Governance