cosmos-sdk/x/gov
Emmanuel T Odeke d56de85a54
x/gov/simulation: fix wrong NewDecodeStore Proposal decoding + proper tests (#8603)
The code in NewDecodeStore decoded the wrong proposal due
to a typographical error, but the tests used the exact same
value for the key value pairs hence the typo could never be caught.
I noticed it during an audit of the code, and I've fixed the
tests to pass in varying values for the various key value pairs.

Fixes #8570

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2021-02-17 03:04:43 -08:00
..
client Update x/gov/client/utils/utils.go 2021-02-12 12:19:14 -05:00
keeper fix comments and add CHANGELOG 2021-02-06 00:57:12 +10:00
legacy Merge branch 'master' into gov_split_vote_weighted_vote 2020-11-26 13:54:24 -05:00
simulation x/gov/simulation: fix wrong NewDecodeStore Proposal decoding + proper tests (#8603) 2021-02-17 03:04:43 -08:00
spec MsgWeightedVote -> MsgVoteWeighted 2021-01-24 20:54:25 -05:00
types Improve create proposal code (#8586) 2021-02-15 15:43:09 +00:00
abci.go Refactor Logging using Zerolog (#8072) 2020-12-03 23:17:21 +00:00
abci_test.go refactor SubVote to WeightedVoteOption && add utility for NewNonSplitVoteOption 2020-10-30 23:14:39 +10:00
common_test.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00
genesis.go Proto Auditing: Replace ID with Id (#7032) 2020-08-14 08:55:54 +00:00
genesis_test.go appcreator: Reuse encoding config instead of recreating it (#8250) 2021-01-06 15:20:12 +00:00
handler.go MsgWeightedVote -> MsgVoteWeighted 2021-01-24 20:54:25 -05:00
handler_test.go Replaced hardcoded 'cosmos' and 'cosmosvaloper' help references (#7056) 2020-08-17 09:04:50 +00:00
module.go Add in-place store migrations (#8485) 2021-02-10 17:49:31 +00:00
module_test.go tendermint: update to rc3 (#6892) 2020-08-14 13:58:53 -04:00