Assessment reports>warpdotgreen-cli>Threat Model>updateSupportedChain

Function: updateSupportedChain(byte[3] _chainId, bool _supported)

This function is used to update the supported status of a chain with a given ID. This function is only callable by the contract owner.

Inputs

  • _chainId

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Value of the chain ID.

  • _supported

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Value of the supported status.

Branches and code coverage

Intended branches

  • Update the supported status of the chain.

Negative behavior

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

  • Revert if the new value is the same as the current value.

Zellic © 2024Back to top ↑