WeightVecNotEqualSize

Error v101 → v120, v121 → v127, v133 → v141, v142 → v150, v151 → v212, v216 → v219, v233 → v315, v320 → current 7.16

The caller is attempting to set weight keys and values but these vectors have different size.

Encountered by: validatorsdevelopers

Why This Error Exists

Weight setting requires parallel arrays of equal length: one UID per weight.

From Chain Metadata

The caller is attempting to set the weight keys and values but these vectors have different size.

What This Means

The caller is attempting to set weight keys and values but these vectors have different size.

Common Causes

  • UID array and weight array have different lengths
  • Mismatched input vectors

How to Fix

  • Ensure uid[] and weights[] arrays have same length
  • Each UID must have exactly one weight value

Thrown By

Version History

v101 block 1 Added
v121 block 518,345 Shape modified
v133 block 1,404,224 Shape modified
v142 block 2,543,779 Shape modified
v151 block 3,157,274 Shape modified
v216 block 4,510,996 Shape modified
v233 block 4,920,350 Shape modified
v320 block 6,523,566 Shape modified Current

Runtime Info

Pallet Index
7
Error Index
16
Error Code
7.16
Runtime Version
v411