validateProductType
validateProductType(
productType):asserts productType is 0
Defined in: packages/synapse-core/src/sp-registry/validation.ts:52
Validate that productType is the currently supported ProductType.PDP (0).
On-chain: require(productType == ProductType.PDP, "Only PDP product type currently supported").
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
productType | number |
Returns
Section titled “Returns”asserts productType is 0
Throws
Section titled “Throws”Errors ValidationError when productType is anything other than PRODUCTS.PDP