cosmos-sdk/x/gov/simulation
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
..
decoder.go x/gov/simulation: fix wrong NewDecodeStore Proposal decoding + proper tests (#8603) 2021-02-17 03:04:43 -08:00
decoder_test.go x/gov/simulation: fix wrong NewDecodeStore Proposal decoding + proper tests (#8603) 2021-02-17 03:04:43 -08:00
genesis.go Make JSONMarshaler methods require proto.Message (#7054) 2020-08-26 09:39:38 +00:00
genesis_test.go Add swagger for gRPC REST (#7075) 2020-08-28 18:49:08 +00:00
operations.go fix simulation test, marshal json process 2021-02-06 01:21:22 +10:00
operations_test.go MsgWeightedVote -> MsgVoteWeighted 2021-01-24 20:54:25 -05:00
params.go Remove dependency of types/module package on x/simulation (#5835) 2020-03-23 12:55:44 +01:00
params_test.go x/gov/simulation/params.go: add unit tests (#6738) 2020-07-19 21:57:14 +00:00
proposals.go Remove dependency of types/module package on x/simulation (#5835) 2020-03-23 12:55:44 +01:00
proposals_test.go tendermint: update to rc3 (#6892) 2020-08-14 13:58:53 -04:00