From 2ce2ec3d6423922cd54bb741e1f774b8a698d66c Mon Sep 17 00:00:00 2001 From: freehere107 Date: Wed, 31 Jul 2024 17:54:27 +0800 Subject: [PATCH] Update Vectors Max elements to 99_999 --- types/Vectors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/Vectors.go b/types/Vectors.go index 0ab9524..b95426e 100644 --- a/types/Vectors.go +++ b/types/Vectors.go @@ -23,8 +23,8 @@ func (v *Vec) Init(data scaleBytes.ScaleBytes, option *ScaleDecoderOption) { func (v *Vec) Process() { elementCount := v.ProcessAndUpdateData("Compact").(int) var result []interface{} - if elementCount > 65_535 { - panic(fmt.Sprintf("Vec length %d exceeds %d with subType %s", elementCount, 50000, v.SubType)) + if elementCount > 99_999 { + panic(fmt.Sprintf("Vec length %d exceeds %d with subType %s", elementCount, 99_999, v.SubType)) } subType := v.SubType for i := 0; i < elementCount; i++ {