Message: ExecuteMsg::SetPendingOwner
This allows the current owner to set a pending owner. The pending owner has no privileges until explicitly accepted.
Inputs
info.senderValidation: The
set_pending_ownerfunction verifies that theinfo.senderis the current owner.Impact: N/A.
new_ownerValidation: The provided
new_owneraddress is validated to ensure it is in a proper address format.Impact: The value that
new_owneris set to.
Branches and code coverage (including function calls)
Intended branches
If
new_owneris valid, it is saved as the pending owner in the state.
Negative behavior
Fail if
new_owneris not a valid address.