Assessment reports>warpdotgreen-cli>Threat Model>updateSigner

Function: updateSigner(address _signer, bool _newValue)

This function is used to update the authorization status of a signer (validator). This function is only callable by the contract owner.

Inputs

  • _signer

    • Control: Arbitrary.

    • Constraints: Nonzero address.

    • Impact: Address of the signer to update.

  • _newValue

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: New authorization status (true for authorized, false for not authorized).

Branches and code coverage

Intended branches

  • Update the authorization status of the signer.

Negative behavior

  • Revert if the function is not called by the owner.

  • Revert if the signer address is zero.

  • Revert if the status is not different.

Zellic © 2024Back to top ↑