Commit 5035718e by Yevhenii Babichenko

fixed wrong call order in Ownable.transferOwnership

parent 7a36a6c9
...@@ -37,8 +37,8 @@ contract Ownable { ...@@ -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;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment