diff --git a/pkg/core/transaction/transaction.go b/pkg/core/transaction/transaction.go index 3c201d042..eba0c237d 100644 --- a/pkg/core/transaction/transaction.go +++ b/pkg/core/transaction/transaction.go @@ -193,7 +193,7 @@ func (t *Transaction) decodeBinaryNoSize(br *io.BinReader, buf []byte) { br.Err = errors.New("too many witnesses") return } else if int(nscripts) != len(t.Signers) { - br.Err = fmt.Errorf("%w: %d vs %d", ErrInvalidWitnessNum, len(t.Signers), len(t.Scripts)) + br.Err = fmt.Errorf("%w: %d vs %d", ErrInvalidWitnessNum, len(t.Signers), nscripts) return } t.Scripts = make([]Witness, nscripts) diff --git a/pkg/vm/testdata/neo-vm b/pkg/vm/testdata/neo-vm index 02f2c68e7..7e5996844 160000 --- a/pkg/vm/testdata/neo-vm +++ b/pkg/vm/testdata/neo-vm @@ -1 +1 @@ -Subproject commit 02f2c68e7ba2694aff88c143631e7acf158d378a +Subproject commit 7e5996844a90b514739f879bc9f873f9a34c9a67