File tree 4 files changed +19
-5
lines changed
4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,14 @@ import "../validation/TimedCrowdsale.sol";
11
11
contract FinalizableCrowdsale is TimedCrowdsale {
12
12
using SafeMath for uint256 ;
13
13
14
- bool private _finalized = false ;
14
+ bool private _finalized;
15
15
16
16
event CrowdsaleFinalized ();
17
17
18
+ constructor () public {
19
+ _finalized = false ;
20
+ }
21
+
18
22
/**
19
23
* @return true if the crowdsale is finalized, false otherwise.
20
24
*/
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ contract Pausable is PauserRole {
10
10
event Paused ();
11
11
event Unpaused ();
12
12
13
- bool private _paused = false ;
13
+ bool private _paused;
14
+
15
+ constructor () public {
16
+ _paused = false ;
17
+ }
14
18
15
19
/**
16
20
* @return true if the contract is paused, false otherwise.
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ import "../math/SafeMath.sol";
10
10
contract SplitPayment {
11
11
using SafeMath for uint256 ;
12
12
13
- uint256 private _totalShares = 0 ;
14
- uint256 private _totalReleased = 0 ;
13
+ uint256 private _totalShares;
14
+ uint256 private _totalReleased;
15
15
16
16
mapping (address => uint256 ) private _shares;
17
17
mapping (address => uint256 ) private _released;
@@ -24,6 +24,8 @@ contract SplitPayment {
24
24
require (payees.length == shares.length );
25
25
require (payees.length > 0 );
26
26
27
+ _totalShares = 0 ;
28
+ _totalReleased = 0 ;
27
29
for (uint256 i = 0 ; i < payees.length ; i++ ) {
28
30
_addPayee (payees[i], shares[i]);
29
31
}
Original file line number Diff line number Diff line change @@ -9,7 +9,11 @@ pragma solidity ^0.4.24;
9
9
contract ReentrancyGuard {
10
10
11
11
/// @dev counter to allow mutex lock with only one SSTORE operation
12
- uint256 private _guardCounter = 1 ;
12
+ uint256 private _guardCounter;
13
+
14
+ constructor () public {
15
+ _guardCounter = 1 ;
16
+ }
13
17
14
18
/**
15
19
* @dev Prevents a contract from calling itself, directly or indirectly.
You can’t perform that action at this time.
0 commit comments