Skip to content

Commit a394db3

Browse files
committed
Updates DAO contracts to new constructor syntax.
1 parent dcf8884 commit a394db3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/DAO/DAO.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
357357
_;
358358
}
359359

360-
function DAO(
360+
constructor(
361361
address _curator,
362362
DAO_Creator _daoCreator,
363363
uint _proposalDeposit,

test/DAO/ManagedAccount.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ contract ManagedAccountInterface {
4242
contract ManagedAccount is ManagedAccountInterface{
4343

4444
// The constructor sets the owner of the account
45-
function ManagedAccount(address _owner, bool _payOwnerOnly) {
45+
constructor(address _owner, bool _payOwnerOnly) {
4646
owner = _owner;
4747
payOwnerOnly = _payOwnerOnly;
4848
}

test/DAO/TokenCreation.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ contract TokenCreationInterface {
8282

8383

8484
contract TokenCreation is TokenCreationInterface, Token {
85-
function TokenCreation(
85+
constructor(
8686
uint _minTokensToCreate,
8787
uint _closingTime,
8888
address _privateCreation,

0 commit comments

Comments
 (0)