✏️ Explanatory Question

What is the purpose of the AifCollectionTypeAttribute in your contract class?

👁 19 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

AifCollectionTypeAttribute specifies the data type of elements stored inside a List parameter in the SysOperation contract.
Example:


AifCollectionTypeAttribute("_inventSiteId", Types::String)

It ensures that the list inventSiteId only holds string values.