diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-06-27 19:22:33 +0800 |
---|---|---|
committer | Erik Kundt <bitshift@posteo.org> | 2018-06-29 17:27:01 +0800 |
commit | 12c4eb769762d55a71ba05cf1b74b99797026f51 (patch) | |
tree | 821de9d9c03984aac3d60844c929792816e8bf1a /test/contracts | |
parent | c9cab803892a09386617faab6b4e1580ee2eaa47 (diff) | |
download | dexon-solidity-12c4eb769762d55a71ba05cf1b74b99797026f51.tar.gz dexon-solidity-12c4eb769762d55a71ba05cf1b74b99797026f51.tar.zst dexon-solidity-12c4eb769762d55a71ba05cf1b74b99797026f51.zip |
Updates compiled unit 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) { } |