Message: ExecuteMsg::SetDefaultValidator
This allows the admin to set a given validator as the new default validator.
Inputs
info.senderValidation: The
set_default_validatorfunction verifies that theinfo.senderis the owner.Impact: N/A.
new_default_validator_addrValidation: The address is verified to ensure it belongs to a valid validator and that it is enabled.
Impact: Default validator gets updated to this address.
Branches and code coverage (including function calls)
Intended branches
If
new_default_validator_addris valid, it is updated as the new default validator.
Negative behavior
Fail if
new_default_validator_addris not a valid validator address.