fixed wrong call order in Ownable.transferOwnership
This commit is contained in:
@ -37,8 +37,8 @@ contract Ownable {
|
|||||||
*/
|
*/
|
||||||
function transferOwnership(address newOwner) onlyOwner {
|
function transferOwnership(address newOwner) onlyOwner {
|
||||||
require(newOwner != address(0));
|
require(newOwner != address(0));
|
||||||
owner = newOwner;
|
|
||||||
OwnershipTransferred(owner, newOwner);
|
OwnershipTransferred(owner, newOwner);
|
||||||
|
owner = newOwner;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user