mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-07 15:07:36 +00:00
vm: restrict map key size
This commit is contained in:
parent
1f9b92c295
commit
543fd58e93
5 changed files with 20 additions and 11 deletions
|
@ -88,7 +88,7 @@ func TestFromToJSON(t *testing.T) {
|
|||
t.Run("BigNestedArray", getTestDecodeFunc(`[[[[[[[[[[[]]]]]]]]]]]`, nil))
|
||||
t.Run("EncodeRecursive", func(t *testing.T) {
|
||||
// add this item to speed up test a bit
|
||||
item := NewByteArray(make([]byte, MaxSize/100))
|
||||
item := NewByteArray(make([]byte, MaxKeySize))
|
||||
t.Run("Array", func(t *testing.T) {
|
||||
arr := NewArray([]Item{item})
|
||||
arr.Append(arr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue