Catch up with amino 0.13.0 (#2690)

* catch up with amino changes in
https://github.com/tendermint/go-amino/pull/222

* WIP: update to amino v0.13.0

* update to fixed amino release
This commit is contained in:
Ismail Khoffi
2018-10-25 03:34:01 +02:00
committed by Ethan Buchman
parent 9795e12ef2
commit 6643c5dd11
29 changed files with 117 additions and 117 deletions

View File

@ -27,7 +27,7 @@ func TestProposalSignable(t *testing.T) {
chainID := "test_chain_id"
signBytes := testProposal.SignBytes(chainID)
expected, err := cdc.MarshalBinary(CanonicalizeProposal(chainID, testProposal))
expected, err := cdc.MarshalBinaryLengthPrefixed(CanonicalizeProposal(chainID, testProposal))
require.NoError(t, err)
require.Equal(t, expected, signBytes, "Got unexpected sign bytes for Proposal")
}
@ -57,9 +57,9 @@ func TestProposalVerifySignature(t *testing.T) {
// serialize, deserialize and verify again....
newProp := new(Proposal)
bs, err := cdc.MarshalBinary(prop)
bs, err := cdc.MarshalBinaryLengthPrefixed(prop)
require.NoError(t, err)
err = cdc.UnmarshalBinary(bs, &newProp)
err = cdc.UnmarshalBinaryLengthPrefixed(bs, &newProp)
require.NoError(t, err)
// verify the transmitted proposal