Assessment reports>Metavest>Threat Model>createSet

Function: createSet(string _name)

This function is used to create a new set.

Inputs

  • _name

    • Control: Arbitrary.

    • Constraints: Length of the _name should be less than 512.

    • Impact: Name of the set.

Branches and code coverage

Intended branches

  • Add _name to the setNames mapping.

Negative behavior

  • Revert if the name of set already exists in the sets or setNames mapping.

  • Revert if the length of setNames is greater than 512.

Zellic © 2024Back to top ↑