Skip to content

Commit

Permalink
DAOFactory: cosmetic swap for conditional blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
sohkai committed Mar 27, 2018
1 parent 7a13959 commit 6200bf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/factory/DAOFactory.sol
Expand Up @@ -32,7 +32,9 @@ contract DAOFactory {
function newDAO(address _root) public returns (Kernel dao) {
dao = Kernel(new KernelProxy(baseKernel));

if (address(regFactory) != address(0)) {
if (address(regFactory) == address(0)) {
dao.initialize(baseACL, _root);
} else {
dao.initialize(baseACL, this);

ACL acl = ACL(dao.acl());
Expand All @@ -53,8 +55,6 @@ contract DAOFactory {

acl.setPermissionManager(address(0), dao, appManagerRole);
acl.setPermissionManager(_root, acl, permRole);
} else {
dao.initialize(baseACL, _root);
}

DeployDAO(dao);
Expand Down

0 comments on commit 6200bf1

Please sign in to comment.