Made some inherit-only contracts internal. (#1433)

* Made some inherit-only contracts internal.

* Added OwnableMock.
This commit is contained in:
Nicolás Venturo
2018-10-18 10:47:35 -03:00
committed by GitHub
parent df3c113711
commit 96d6103e0b
13 changed files with 19 additions and 11 deletions

View File

@ -17,7 +17,7 @@ contract Ownable {
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() public {
constructor() internal {
_owner = msg.sender;
emit OwnershipTransferred(address(0), _owner);
}

View File

@ -10,7 +10,7 @@ contract Secondary {
/**
* @dev Sets the primary account to the one that is creating the Secondary contract.
*/
constructor() public {
constructor() internal {
_primary = msg.sender;
}