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.
This commit is contained in:
Vladimir Khramov
2017-11-20 23:13:32 +03:00
committed by GitHub
parent 99f3e26f83
commit 03ad0efd29

View File

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