diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-09-12 22:21:43 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-09-12 22:21:43 +0800 |
commit | 879251a78b2d4e26dc71299d2d7ca989d0855d61 (patch) | |
tree | fedf7b035e527103f178f9670bce4cbbc81d283d /test/compilationTests/corion/ico.sol | |
parent | 1994b51ef3eb8de3617efec9747979c9fb5ed453 (diff) | |
download | dexon-solidity-879251a78b2d4e26dc71299d2d7ca989d0855d61.tar dexon-solidity-879251a78b2d4e26dc71299d2d7ca989d0855d61.tar.gz dexon-solidity-879251a78b2d4e26dc71299d2d7ca989d0855d61.tar.bz2 dexon-solidity-879251a78b2d4e26dc71299d2d7ca989d0855d61.tar.lz dexon-solidity-879251a78b2d4e26dc71299d2d7ca989d0855d61.tar.xz dexon-solidity-879251a78b2d4e26dc71299d2d7ca989d0855d61.tar.zst dexon-solidity-879251a78b2d4e26dc71299d2d7ca989d0855d61.zip |
Update test suite to use address payable.
Diffstat (limited to 'test/compilationTests/corion/ico.sol')
-rw-r--r-- | test/compilationTests/corion/ico.sol | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/compilationTests/corion/ico.sol b/test/compilationTests/corion/ico.sol index b1e0bf75..e660389b 100644 --- a/test/compilationTests/corion/ico.sol +++ b/test/compilationTests/corion/ico.sol @@ -27,12 +27,12 @@ contract ico is safeMath { uint256 constant oneSegment = 40320; - address public owner; - address public tokenAddr; - address public premiumAddr; + address payable public owner; + address payable public tokenAddr; + address payable public premiumAddr; uint256 public startBlock; uint256 public icoDelay; - address public foundationAddress; + address payable public foundationAddress; address public icoEtcPriceAddr; uint256 public icoExchangeRate; uint256 public icoExchangeRateSetBlock; @@ -50,7 +50,7 @@ contract ico is safeMath { uint256 public totalMint; uint256 public totalPremiumMint; - constructor(address foundation, address priceSet, uint256 exchangeRate, uint256 startBlockNum, address[] memory genesisAddr, uint256[] memory genesisValue) public { + constructor(address payable foundation, address priceSet, uint256 exchangeRate, uint256 startBlockNum, address[] memory genesisAddr, uint256[] memory genesisValue) public { /* Installation function. @@ -248,7 +248,7 @@ contract ico is safeMath { aborted = true; } - function connectTokens(address tokenContractAddr, address premiumContractAddr) external { + function connectTokens(address payable tokenContractAddr, address payable premiumContractAddr) external { /* Installation function which joins the two token contracts with this contract. Only callable by the owner @@ -284,7 +284,7 @@ contract ico is safeMath { require( buy(msg.sender, address(0x00)) ); } - function buy(address beneficiaryAddress, address affilateAddress) public payable returns (bool success) { + function buy(address payable beneficiaryAddress, address affilateAddress) public payable returns (bool success) { /* Buying a token |