Browse Source

types: fix validator_set_test issue with UnmarshalBinary into ptr

pull/1265/head
Ethan Buchman 6 years ago
parent
commit
abeeeeb611
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      types/validator_set_test.go

+ 2
- 2
types/validator_set_test.go View File

@ -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)


Loading…
Cancel
Save