---
# System prepended metadata

title: 'HOW TO: Transfer ownership of a vesting contract'

---

# How to transfer ownership of a vesting contract

Here's an example from [Development Department Proposal A11](https://daodao.zone/dao/juno1gyjl26rnqqyk6cuh6nqtvx8t885jgqagusvpqpvtgaygcjg2wjdqz0rzle/proposals/A11), transferring to the [Communications Department](https://daodao.zone/dao/juno1n34v729jqgysm5w0unukpt4kvqu4wqyacsv4krmd40f7pz5ruzwqau7e6m/home):

1. Get the address of each vesting contract you are updating  (#TODO what's the best way?) and of the two DAOs (you can copy it from the URL).
2. On the DAO **ceding ownership**, create a proposal and, for every contract:
    1. add an **Update Contract Admin** action with:
        1. **Smart contract address** = the existing vesting contract address = `juno1ajs39qk0kd5xcjc8lvsym9q9g8q5jalzreum7nwqg036mqrw7utqf9gsu4`
        2. **Admin** = the receiving DAO address = `juno1n34v729jqgysm5w0unukpt4kvqu4wqyacsv4krmd40f7pz5ruzwqau7e6m`
    3. add an **Execute Smart Contract** action with:
        1. **Smart contract address** = the existing vesting contract address = `juno1ajs39qk0kd5xcjc8lvsym9q9g8q5jalzreum7nwqg036mqrw7utqf9gsu4`
        2. **Message** =   
        ```
        { "update_ownership": { "transfer_ownership": { "new_owner": "juno1n34v729jqgysm5w0unukpt4kvqu4wqyacsv4krmd40f7pz5ruzwqau7e6m" } } }
    3. Publish, vote and execute the proposal.
    
3. On the DAO **receiving ownership**, create a proposal and, for every contract:
    1. add an **Execute Smart Contract** action with:
        1. **Smart contract address** = the same vesting contract address = `juno1ajs39qk0kd5xcjc8lvsym9q9g8q5jalzreum7nwqg036mqrw7utqf9gsu4`
        2. **Message** = `{ "update_ownership": "accept_ownership" }`
    2. add a **Configure Vesting Payments** action (#TODO is this always needed?):
        1. click on `Prepare Update` for the chain you're on (Juno) and sign the transaction
        2. make sure the checkmark appears besides the name of the chain
    3. Publish, vote and execute the proposal.