Browse Source

fixed wrong call order in Ownable.transferOwnership

Yevhenii Babichenko 8 years ago
parent
commit
5035718e4b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contracts/ownership/Ownable.sol

+ 1 - 1
contracts/ownership/Ownable.sol

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