mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
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:
committed by
Ethan Buchman
parent
9795e12ef2
commit
6643c5dd11
@ -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
|
||||
|
Reference in New Issue
Block a user