Assessment reports>Polyhedra DVN>Threat Model>removeLzMessageLib

Function: removeLzMessageLib(address _messageLib)

Removes a message library from the list of supported message libraries. Only callable by the owner.

Inputs

  • _messageLib

    • Control: Full.

    • Constraints: Must be an enabled message library.

    • Impact: Specifies which messaging library to withdraw fees and mark as disabled.

Branches and code coverage

Intended branches

  • Successfully disables the message library and withdraws fees.

  • Removes the message library from the lzMessageLibs array.

Negative behavior

  • Caller is not owner.

  • Messaging library is not enabled.

Zellic © 2025Back to top ↑