TwoStepOwnable.sol
onlyOwner
, which can be aplied to your functions to restrict their use to the owner. In order to transfer ownership, a recipient must be specified, at which point the specified recipient can call acceptOwnership
and take ownership. :::cancelOwnershipTransfer
Solidity
function cancelOwnershipTransfer() external payable
Details Cancel a transfer of ownership to a new account. Can only be called by the current owner. :::
isOwner
Solidity
function isOwner() external view returns (bool)
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
owner
Solidity
function owner() external view returns (address)
Details Returns the address of the current owner. :::
Parameters
Name | Type | Description |
---|---|---|
newOwner | address | undefined |
Events
OwnershipTransferred
Solidity
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
Name | Type | Description |
---|---|---|
previousOwner indexed | address | undefined |
newOwner indexed | address | undefined |
Errors
Unauthorized
Solidity
error Unauthorized()
ZeroAddress
Solidity
error ZeroAddress()