diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-06-25 21:02:20 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-26 06:00:32 +0800 |
commit | 95c3488a26bf5c20b242a7358d0dd04948b326f2 (patch) | |
tree | 993783b500555fb1b5dcb4d3f7ae2331fdec96ce /test/compilationTests/zeppelin/crowdsale | |
parent | 3b1741909c7472b892695260b0b8c59a53c2183e (diff) | |
download | dexon-solidity-95c3488a26bf5c20b242a7358d0dd04948b326f2.tar dexon-solidity-95c3488a26bf5c20b242a7358d0dd04948b326f2.tar.gz dexon-solidity-95c3488a26bf5c20b242a7358d0dd04948b326f2.tar.bz2 dexon-solidity-95c3488a26bf5c20b242a7358d0dd04948b326f2.tar.lz dexon-solidity-95c3488a26bf5c20b242a7358d0dd04948b326f2.tar.xz dexon-solidity-95c3488a26bf5c20b242a7358d0dd04948b326f2.tar.zst dexon-solidity-95c3488a26bf5c20b242a7358d0dd04948b326f2.zip |
Updates external contracts to new constructor syntax.
Diffstat (limited to 'test/compilationTests/zeppelin/crowdsale')
4 files changed, 4 insertions, 4 deletions
diff --git a/test/compilationTests/zeppelin/crowdsale/CappedCrowdsale.sol b/test/compilationTests/zeppelin/crowdsale/CappedCrowdsale.sol index f04649f3..afae79b7 100644 --- a/test/compilationTests/zeppelin/crowdsale/CappedCrowdsale.sol +++ b/test/compilationTests/zeppelin/crowdsale/CappedCrowdsale.sol @@ -12,7 +12,7 @@ contract CappedCrowdsale is Crowdsale { uint256 public cap; - function CappedCrowdsale(uint256 _cap) { + constructor(uint256 _cap) { cap = _cap; } diff --git a/test/compilationTests/zeppelin/crowdsale/Crowdsale.sol b/test/compilationTests/zeppelin/crowdsale/Crowdsale.sol index 21d36840..7c0cb360 100644 --- a/test/compilationTests/zeppelin/crowdsale/Crowdsale.sol +++ b/test/compilationTests/zeppelin/crowdsale/Crowdsale.sol @@ -40,7 +40,7 @@ contract Crowdsale { event TokenPurchase(address indexed purchaser, address indexed beneficiary, uint256 value, uint256 amount); - function Crowdsale(uint256 _startBlock, uint256 _endBlock, uint256 _rate, address _wallet) { + constructor(uint256 _startBlock, uint256 _endBlock, uint256 _rate, address _wallet) { require(_startBlock >= block.number); require(_endBlock >= _startBlock); require(_rate > 0); diff --git a/test/compilationTests/zeppelin/crowdsale/RefundVault.sol b/test/compilationTests/zeppelin/crowdsale/RefundVault.sol index d88f035f..6a22ebde 100644 --- a/test/compilationTests/zeppelin/crowdsale/RefundVault.sol +++ b/test/compilationTests/zeppelin/crowdsale/RefundVault.sol @@ -22,7 +22,7 @@ contract RefundVault is Ownable { event RefundsEnabled(); event Refunded(address indexed beneficiary, uint256 weiAmount); - function RefundVault(address _wallet) { + constructor(address _wallet) { require(_wallet != address(0x0)); wallet = _wallet; state = State.Active; diff --git a/test/compilationTests/zeppelin/crowdsale/RefundableCrowdsale.sol b/test/compilationTests/zeppelin/crowdsale/RefundableCrowdsale.sol index f45df1d3..5e798d45 100644 --- a/test/compilationTests/zeppelin/crowdsale/RefundableCrowdsale.sol +++ b/test/compilationTests/zeppelin/crowdsale/RefundableCrowdsale.sol @@ -21,7 +21,7 @@ contract RefundableCrowdsale is FinalizableCrowdsale { // refund vault used to hold funds while crowdsale is running RefundVault public vault; - function RefundableCrowdsale(uint256 _goal) { + constructor(uint256 _goal) { vault = new RefundVault(wallet); goal = _goal; } |