diff options
author | chriseth <chris@ethereum.org> | 2018-06-29 21:45:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-29 21:45:26 +0800 |
commit | e289c36158701ba0b874051e9e426e270b0e38e2 (patch) | |
tree | 2d19dff8180f4c4a8d25ef7414820f57f3e265af /test/contracts | |
parent | 975dddf1b17e50a13cebdabcf885dcc800bd1742 (diff) | |
parent | e6d250772d1a42c5ac113a4e045e8365805ee300 (diff) | |
download | dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar.gz dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar.zst dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.zip |
Merge pull request #4354 from ethereum/constructorSyntaxTests
Updates tests to new constructor syntax
Diffstat (limited to 'test/contracts')
-rw-r--r-- | test/contracts/Wallet.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/contracts/Wallet.cpp b/test/contracts/Wallet.cpp index 0a596b6d..6328b518 100644 --- a/test/contracts/Wallet.cpp +++ b/test/contracts/Wallet.cpp @@ -101,7 +101,7 @@ contract multiowned { // constructor is given number of sigs required to do protected "onlymanyowners" transactions // as well as the selection of addresses capable of confirming them. - function multiowned(address[] _owners, uint _required) { + constructor(address[] _owners, uint _required) { m_numOwners = _owners.length + 1; m_owners[1] = uint(msg.sender); m_ownerIndex[uint(msg.sender)] = 1; @@ -288,7 +288,7 @@ contract daylimit is multiowned { // METHODS // constructor - stores initial daily limit and records the present day's index. - function daylimit(uint _limit) { + constructor(uint _limit) { m_dailyLimit = _limit; m_lastDay = today(); } @@ -369,7 +369,7 @@ contract Wallet is multisig, multiowned, daylimit { // constructor - just pass on the owner array to the multiowned and // the limit to daylimit - function Wallet(address[] _owners, uint _required, uint _daylimit) payable + constructor(address[] _owners, uint _required, uint _daylimit) payable multiowned(_owners, _required) daylimit(_daylimit) { } |