fixed wrong call order in Ownable.transferOwnership

This commit is contained in:
Yevhenii Babichenko
2017-09-07 11:59:36 +03:00
parent 7a36a6c92a
commit 5035718e4b

View File

@ -37,8 +37,8 @@ contract Ownable {
*/
function transferOwnership(address newOwner) onlyOwner {
require(newOwner != address(0));
owner = newOwner;
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
}