# How to change the defaultownership of an ERC777 contract?

**URL:** <https://forum.openzeppelin.com/t/how-to-change-the-defaultownership-of-an-erc777-contract/2950>\
**Category:** Contracts\
**Tags:** erc20, erc777, solidity-docgen\
**Created:** [May 26, 2020, 1:57pm UTC](https://forum.openzeppelin.com/t/how-to-change-the-defaultownership-of-an-erc777-contract/2950 "2020-05-26T13:57:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahaman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/rahaman/32/2299_2.png) [@Rahaman](https://forum.openzeppelin.com/u/Rahaman)\
**Post date:** [May 26, 2020, 1:57pm UTC](https://forum.openzeppelin.com/t/how-to-change-the-defaultownership-of-an-erc777-contract/2950/1 "2020-05-26T13:57:27Z")

</div>

@abcoathup  
How to implement in an ERC777 contract to change or add the function of defaultownership for change the Owner. If an example you will make for me it will more helpful for me.

Thanks for help and support continuously 💞 💞@abcoathup

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [May 27, 2020, 5:50am UTC](https://forum.openzeppelin.com/t/how-to-change-the-defaultownership-of-an-erc777-contract/2950/2 "2020-05-27T05:50:42Z")

</div>

Hi @Rahaman,

An ERC777 doesn’t have an owner unless you add ownership to your contract.

An ERC777 can have default operators that are set at the time of deployment.

---

<div class="post-metadata">

**Author:** ![Rahaman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/rahaman/32/2299_2.png) [@Rahaman](https://forum.openzeppelin.com/u/Rahaman)\
**Post date:** [May 27, 2020, 7:06am UTC](https://forum.openzeppelin.com/t/how-to-change-the-defaultownership-of-an-erc777-contract/2950/3 "2020-05-27T07:06:03Z")

</div>

@abcoathup  
Then How to change the default operators & sat an owner?

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [June 1, 2020, 2:53am UTC](https://forum.openzeppelin.com/t/how-to-change-the-defaultownership-of-an-erc777-contract/2950/4 "2020-06-01T02:53:35Z")

</div>

Hi @Rahaman,

Apologies, I had missed your followup question.

For how to use Ownable, please see the documentation: [https://docs.openzeppelin.com/contracts/3.x/access-control#ownership-and-ownable](https://docs.openzeppelin.com/contracts/3.x/access-control#ownership-and-ownable)

We can set the `defaultOperators` in the constructor of our ERC777 contract: [https://docs.openzeppelin.com/contracts/3.x/api/token/erc777#ERC777-constructor-string-string-address---](https://docs.openzeppelin.com/contracts/3.x/api/token/erc777#ERC777-constructor-string-string-address---)

---

<div class="post-metadata">

**Author:** ![Rahaman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/rahaman/32/2299_2.png) [@Rahaman](https://forum.openzeppelin.com/u/Rahaman)\
**Post date:** [June 2, 2020, 6:57am UTC](https://forum.openzeppelin.com/t/how-to-change-the-defaultownership-of-an-erc777-contract/2950/5 "2020-06-02T06:57:35Z")

</div>

@abcoathup  
No need to Apologies! Thanks for help and support ! 👍 💞
