contracttest: fix err checking branch

This commit is contained in:
Vsevolod Brekelov 2019-10-21 12:31:17 +03:00
parent fe39c565b9
commit 05ea84454c

View file

@ -28,7 +28,7 @@ func TestCreateMultiSigRedeemScript(t *testing.T) {
for i := 0; i < len(validators); i++ { for i := 0; i < len(validators); i++ {
bb := br.ReadBytes() bb := br.ReadBytes()
if err != nil { if br.Err != nil {
t.Fatal(err) t.Fatal(err)
} }
assert.Equal(t, validators[i].Bytes(), bb) assert.Equal(t, validators[i].Bytes(), bb)