Skip to content

Commit

Permalink
fix: deterministic factory deployment
Browse files Browse the repository at this point in the history
- fix factory owner address is input in the constructor as we are using factory deterministic deployment.
  • Loading branch information
gabririgo committed Jun 17, 2022
1 parent 1a24724 commit 03c8feb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contracts/protocol/proxies/RigoblockPoolProxyFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,17 @@ contract RigoblockPoolProxyFactory is Owned, IRigoblockPoolProxyFactory {
_;
}

// dev owner is input as we are using factory deterministic deployment.
constructor(
address payable _registry,
address payable _dragoDao,
address _authority)
address _authority,
address _owner)
{
data.registry = DragoRegistry(_registry);
data.dragoDao = _dragoDao;
data.authority = _authority;
owner = msg.sender;
owner = _owner;
}

/*
Expand Down

0 comments on commit 03c8feb

Please sign in to comment.