From 03ad0efd292f3a180df6745fbdafc8ca83859774 Mon Sep 17 00:00:00 2001 From: Vladimir Khramov Date: Mon, 20 Nov 2017 23:13:32 +0300 Subject: [PATCH] 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. --- contracts/ownership/Ownable.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/ownership/Ownable.sol b/contracts/ownership/Ownable.sol index 307ecee46..9e2c2f884 100644 --- a/contracts/ownership/Ownable.sol +++ b/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;