Assessment reports>Polyhedra DVN>Threat Model>addLzMessageLib

Function: addLzMessageLib(address _messageLib)

Adds a new message library to the list of supported message libraries. Only callable by the owner.

Inputs

  • _messageLib

    • Control: Full.

    • Constraints: Must not be already added. Must return a valid message library type when messageLibType() is called on it.

    • Impact: The address of the message library to add.

Branches and code coverage

Intended branches

  • Successfully adds the message library to the list of supported message libraries.

Negative behavior

  • Caller is not the owner.

  • Message library was already added.

  • Message library type is not valid.

Zellic © 2025Back to top ↑