vm: move MaxArraySize and MaxItemSize to stackitem package

This commit is contained in:
Evgenii Stratonikov 2020-06-11 16:31:31 +03:00
parent 349110149f
commit f2f01a08c9
7 changed files with 38 additions and 37 deletions

View file

@ -4,7 +4,7 @@ import (
"math/big"
"testing"
"github.com/nspcc-dev/neo-go/pkg/vm"
"github.com/nspcc-dev/neo-go/pkg/vm/stackitem"
)
var assignTestCases = []testCase{
@ -144,9 +144,9 @@ func TestManyAssignments(t *testing.T) {
src2 := `return a
}`
for i := 0; i < vm.MaxArraySize; i++ {
for i := 0; i < stackitem.MaxArraySize; i++ {
src1 += "a += 1\n"
}
eval(t, src1+src2, big.NewInt(vm.MaxArraySize))
eval(t, src1+src2, big.NewInt(stackitem.MaxArraySize))
}