Explorar el Código

make Ownable transferrable

Manuel Araoz hace 9 años
padre
commit
9ec8d752ae
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      contracts/Ownable.sol

+ 5 - 0
contracts/Ownable.sol

@@ -13,4 +13,9 @@ contract Ownable {
     if (msg.sender == owner)
       _
   }
+
+  function transfer(address newOwner) onlyOwner {
+    owner = newOwner;
+  }
+
 }