Message: ExecuteMsg::SetTreasury
This allows the admin to set the treasury address.
Inputs
info.senderValidation: The
set_treasuryfunction verifies that theinfo.senderis the owner.Impact: N/A.
new_treasuryValidation: The provided
new_treasuryaddress is validated to ensure it is a proper address format.Impact: The treasury address is set to this value.
Branches and code coverage (including function calls)
Intended branches
If the
new_treasuryaddress is valid, it is updated in the state.
Negative behavior
Fail if
new_treasuryis not a valid address.