Message: ExecuteMsg::EnableValidator
This allows the admin to re-enable a previously disabled validator, permitting new stakes to the validator.
Inputs
info.senderValidation: The
enable_validatorfunction verifies that theinfo.senderis the contract owner.Impact: N/A.
validator_addrValidation: Ensures the validator exists in the contract's state and is currently disabled.
Impact: This is the validator address that is enabled.
Branches and code coverage (including function calls)
Intended branches
If
validator_addrexists and is disabled, it is marked as enabled in the contract state.
Negative behavior
Fail if
validator_addrdoes not exist in the validator list.Fail if
validator_addris already enabled.