Skip to content

Commit 40151cc

Browse files
committed
Update DAO contracts (use strict address literals)
1 parent 2343553 commit 40151cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/DAO/DAO.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
353353

354354
// Modifier that allows only shareholders to vote and create new proposals
355355
modifier onlyTokenholders {
356-
if (balanceOf(msg.sender) == 0) revert();
356+
if (balanceOf(msg.sender) == 0x0000000000000000000000000000000000000000) revert();
357357
_;
358358
}
359359

@@ -380,9 +380,9 @@ contract DAO is DAOInterface, Token, TokenCreation {
380380
proposalDeposit = _proposalDeposit;
381381
rewardAccount = new ManagedAccount(address(this), false);
382382
DAOrewardAccount = new ManagedAccount(address(this), false);
383-
if (address(rewardAccount) == 0)
383+
if (address(rewardAccount) == 0x0000000000000000000000000000000000000000)
384384
revert();
385-
if (address(DAOrewardAccount) == 0)
385+
if (address(DAOrewardAccount) == 0x0000000000000000000000000000000000000000)
386386
revert();
387387
lastTimeMinQuorumMet = now;
388388
minQuorumDivisor = 5; // sets the minimal quorum to 20%
@@ -647,10 +647,10 @@ contract DAO is DAOInterface, Token, TokenCreation {
647647

648648
// If the new DAO doesn't exist yet, create the new DAO and store the
649649
// current split data
650-
if (address(p.splitData[0].newDAO) == 0) {
650+
if (address(p.splitData[0].newDAO) == 0x0000000000000000000000000000000000000000) {
651651
p.splitData[0].newDAO = createNewDAO(_newCurator);
652652
// Call depth limit reached, etc.
653-
if (address(p.splitData[0].newDAO) == 0)
653+
if (address(p.splitData[0].newDAO) == 0x0000000000000000000000000000000000000000)
654654
revert();
655655
// should never happen
656656
if (this.balance < sumOfProposalDeposits)

0 commit comments

Comments
 (0)