pub fn update_ownership(
    deps: DepsMut<'_>,
    block: &BlockInfo,
    sender: &Addr,
    action: Action
) -> Result<Ownership<Addr>, OwnershipError>
Expand description

Update the contract’s ownership info based on the given action. Return the updated ownership.