浏览代码

Small code style change

http://solidity.readthedocs.io/en/develop/style-guide.html#other-recommendations
The visibility modifiers for a function should come before any custom modifiers.
Vladimir Khramov 7 年之前
父节点
当前提交
03ad0efd29
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      contracts/ownership/Ownable.sol

+ 1 - 1
contracts/ownership/Ownable.sol

@@ -35,7 +35,7 @@ contract Ownable {
    * @dev Allows the current owner to transfer control of the contract to a newOwner.
    * @param newOwner The address to transfer ownership to.
    */
-  function transferOwnership(address newOwner) onlyOwner public {
+  function transferOwnership(address newOwner) public onlyOwner {
     require(newOwner != address(0));
     OwnershipTransferred(owner, newOwner);
     owner = newOwner;