From abeeeeb611b21a85051a7781184d6c30dcd75e7f Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Fri, 2 Mar 2018 01:49:59 -0500 Subject: [PATCH] types: fix validator_set_test issue with UnmarshalBinary into ptr --- types/validator_set_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/validator_set_test.go b/types/validator_set_test.go index 03c483d26..b9f0f3adb 100644 --- a/types/validator_set_test.go +++ b/types/validator_set_test.go @@ -16,7 +16,7 @@ import ( func randPubKey() crypto.PubKey { var pubKey [32]byte copy(pubKey[:], cmn.RandBytes(32)) - return crypto.PubKeyEd25519(pubKey) + return crypto.PubKeyEd25519(pubKey).Wrap() } func randValidator_() *Validator { @@ -299,7 +299,7 @@ func (valSet *ValidatorSet) toBytes() []byte { } func (valSet *ValidatorSet) fromBytes(b []byte) { - err := wire.UnmarshalBinary(b, valSet) + err := wire.UnmarshalBinary(b, &valSet) if err != nil { // DATA HAS BEEN CORRUPTED OR THE SPEC HAS CHANGED panic(err)