Skip to content

Commit ad12381

Browse files
pemulisshrugs
authored andcommitted
update constructor syntax for solidity 0.4.23 in numerous contracts (OpenZeppelin#921)
* update solidity-coverage to ^0.5.0 * update truffle dependency to ^4.1.8 * update solium to ^1.1.7 * update all contracts to solidity ^0.4.23
1 parent 20b85be commit ad12381

File tree

108 files changed

+361
-725
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+361
-725
lines changed

contracts/AddressUtils.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.4.21;
1+
pragma solidity ^0.4.23;
22

33

44
/**

contracts/Bounty.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.4.21;
1+
pragma solidity ^0.4.23;
22

33

44
import "./payment/PullPayment.sol";

contracts/DayLimit.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.4.21;
1+
pragma solidity ^0.4.23;
22

33

44
/**
@@ -16,7 +16,7 @@ contract DayLimit {
1616
* @dev Constructor that sets the passed value as a dailyLimit.
1717
* @param _limit uint256 to represent the daily limit.
1818
*/
19-
function DayLimit(uint256 _limit) public {
19+
constructor(uint256 _limit) public {
2020
dailyLimit = _limit;
2121
lastDay = today();
2222
}

contracts/ECRecovery.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.4.21;
1+
pragma solidity ^0.4.23;
22

33

44
/**

contracts/LimitBalance.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.4.21;
1+
pragma solidity ^0.4.23;
22

33

44
/**
@@ -15,7 +15,7 @@ contract LimitBalance {
1515
* @dev Constructor that sets the passed value as a limit.
1616
* @param _limit uint256 to represent the limit.
1717
*/
18-
function LimitBalance(uint256 _limit) public {
18+
constructor(uint256 _limit) public {
1919
limit = _limit;
2020
}
2121

contracts/MerkleProof.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.4.21;
1+
pragma solidity ^0.4.23;
22

33

44
/*

contracts/ReentrancyGuard.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.4.21;
1+
pragma solidity ^0.4.23;
22

33

44
/**

contracts/access/SignatureBouncer.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.4.18;
1+
pragma solidity ^0.4.23;
22

33
import "../ownership/Ownable.sol";
44
import "../ownership/rbac/RBAC.sol";

contracts/crowdsale/Crowdsale.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.4.21;
1+
pragma solidity ^0.4.23;
22

33
import "../token/ERC20/ERC20.sol";
44
import "../math/SafeMath.sol";
@@ -45,7 +45,7 @@ contract Crowdsale {
4545
* @param _wallet Address where collected funds will be forwarded to
4646
* @param _token Address of the token being sold
4747
*/
48-
function Crowdsale(uint256 _rate, address _wallet, ERC20 _token) public {
48+
constructor(uint256 _rate, address _wallet, ERC20 _token) public {
4949
require(_rate > 0);
5050
require(_wallet != address(0));
5151
require(_token != address(0));

contracts/crowdsale/distribution/FinalizableCrowdsale.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.4.21;
1+
pragma solidity ^0.4.23;
22

33
import "../../math/SafeMath.sol";
44
import "../../ownership/Ownable.sol";

0 commit comments

Comments
 (0)