Non-constructor initialization removed (#1403)

* signing prefix added

* Minor improvement

* Tests changed

* Successfully tested

* Minor improvements

* Minor improvements

* Revert "Dangling commas are now required. (#1359)"

This reverts commit a6889776f4.

* updates

* fixes #1391
This commit is contained in:
Aniket
2018-10-10 18:03:26 +05:30
committed by Nicolás Venturo
parent b0da0fded0
commit da67e435b1
4 changed files with 19 additions and 5 deletions

View File

@ -9,7 +9,11 @@ pragma solidity ^0.4.24;
contract ReentrancyGuard {
/// @dev counter to allow mutex lock with only one SSTORE operation
uint256 private _guardCounter = 1;
uint256 private _guardCounter;
constructor() public {
_guardCounter = 1;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.