|
@ -83,7 +83,7 @@ func TestMultiSigPubkeyEquality(t *testing.T) { |
|
|
pubkeys, _ := generatePubKeysAndSignatures(5, msg) |
|
|
pubkeys, _ := generatePubKeysAndSignatures(5, msg) |
|
|
multisigKey := NewThresholdMultiSignaturePubKey(2, pubkeys) |
|
|
multisigKey := NewThresholdMultiSignaturePubKey(2, pubkeys) |
|
|
var unmarshalledMultisig *ThresholdMultiSignaturePubKey |
|
|
var unmarshalledMultisig *ThresholdMultiSignaturePubKey |
|
|
cdc.MustUnmarshalBinary(multisigKey.Bytes(), &unmarshalledMultisig) |
|
|
|
|
|
|
|
|
cdc.MustUnmarshalBinaryBare(multisigKey.Bytes(), &unmarshalledMultisig) |
|
|
require.True(t, multisigKey.Equals(unmarshalledMultisig)) |
|
|
require.True(t, multisigKey.Equals(unmarshalledMultisig)) |
|
|
|
|
|
|
|
|
// Ensure that reordering pubkeys is treated as a different pubkey
|
|
|
// Ensure that reordering pubkeys is treated as a different pubkey
|
|
|