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

@ -11,7 +11,7 @@ contract ReentrancyGuard {
/// @dev counter to allow mutex lock with only one SSTORE operation
uint256 private _guardCounter;
constructor() public {
constructor() internal {
// The counter starts at one to prevent changing it from zero to a non-zero
// value, which is a more expensive operation.
_guardCounter = 1;