@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
@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
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.
@abcoathup
Then How to change the default operators & sat an owner?
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
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---
@abcoathup
No need to Apologies! Thanks for help and support !