Assessment reports>Spectral Modelers>Threat Model>signUpToCompetition

Function: signUpToCompetition(string calldata _modelHash)

This signs up for the competition.

Inputs

  • _modelHash

    • Control: Controlled by the caller.

    • Constraints: Must be a non-empty string.

    • Impact: Represents the model commitment of the modeler in the competition.

Branches and code coverage

Intended branches

  • Register the modeler in the modelerContract.

Negative behavior

  • Function should revert if _modelHash is an empty string.

  • Function should revert if the modelerContract address is not set.

  • Registering a modeler that is already registered.

  • Registering a _modelHash that has already been used.

Zellic © 2024Back to top ↑