Owned
This contract provides support and utilities for contract ownership.
Functions:
Events:
Function constructor()
constructor()
initializes a new Owned instance
Function transferOwnership(address _newOwner)
transferOwnership(address _newOwner)
allows transferring the contract ownership
the new owner still needs to accept the transfer
can only be called by the contract owner
Parameters:
_newOwner
: new contract owner
Function acceptOwnership()
acceptOwnership()
used by a new owner to accept an ownership transfer
Event OwnerUpdate(address _prevOwner, address _newOwner)
OwnerUpdate(address _prevOwner, address _newOwner)
triggered when the owner is updated
Parameters:
_prevOwner
: previous owner_newOwner
: new owner
Last updated