allow empty address to be owner
This commit is contained in:
@@ -39,13 +39,12 @@ contract InitializableOwnable {
|
||||
|
||||
// ============ Functions ============
|
||||
|
||||
function initOwner(address newOwner) public notInitialized{
|
||||
function initOwner(address newOwner) public notInitialized {
|
||||
_INITIALIZED_ = true;
|
||||
_OWNER_ = newOwner;
|
||||
}
|
||||
|
||||
function transferOwnership(address newOwner) public onlyOwner {
|
||||
require(newOwner != address(0), "INVALID_OWNER");
|
||||
emit OwnershipTransferPrepared(_OWNER_, newOwner);
|
||||
_NEW_OWNER_ = newOwner;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,6 @@ contract Ownable {
|
||||
}
|
||||
|
||||
function transferOwnership(address newOwner) external onlyOwner {
|
||||
require(newOwner != address(0), "INVALID_OWNER");
|
||||
emit OwnershipTransferPrepared(_OWNER_, newOwner);
|
||||
_NEW_OWNER_ = newOwner;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user