validateCapabilities
validateCapabilities(
keys,values):void
Defined in: packages/synapse-core/src/sp-registry/validation.ts:89
Validate capability keys/values arrays against the contract’s
_validateCapabilities require chain.
Checks:
keys.length === values.lengthkeys.length <= MAX_CAPABILITIES(24)- each key non-empty and
<= MAX_CAPABILITY_KEY_LENGTH(32 UTF-8 bytes) - each value non-empty and
<= MAX_CAPABILITY_VALUE_LENGTH(128 bytes)
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
keys | readonly string[] |
values | readonly `0x${string}`[] |
Returns
Section titled “Returns”void
Throws
Section titled “Throws”Errors ValidationError when any of the above is violated