Skip to content

Commit

Permalink
Update Vectors Max elements to 99_999
Browse files Browse the repository at this point in the history
  • Loading branch information
freehere107 committed Jul 31, 2024
1 parent e084140 commit 2ce2ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/Vectors.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func (v *Vec) Init(data scaleBytes.ScaleBytes, option *ScaleDecoderOption) {
func (v *Vec) Process() {
elementCount := v.ProcessAndUpdateData("Compact<u32>").(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++ {
Expand Down

0 comments on commit 2ce2ec3

Please sign in to comment.