Assessment reports>Polyhedra DVN>Threat Model>setZKMptValidator

Function: setZKMptValidator(address _newZkMptValidator)

Changes the zkMPT-validator contract address configuration. Callable by the owner only.

Inputs

  • _newZkMptValidator

    • Control: Full.

    • Constraints: Cannot be zero or equal to the currently stored address.

    • Impact: The zkMPT validator contract to use.

Branches and code coverage

Intended branches

  • Updates the zkMPT address configuration.

Negative behavior

  • Caller is not the owner.

  • Reverts if the _newZkMptValidator is zero.

  • The _newZkMptValidator is the same as the stored zkMPT contract address.

Zellic © 2025Back to top ↑