Skip to content

Commit

Permalink
Rename init function
Browse files Browse the repository at this point in the history
  • Loading branch information
vrde committed Nov 14, 2023
1 parent 4e4c5e6 commit b8cff73
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contracts/GovernanceToken/GovernanceToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ contract GovernanceToken is Initializable, GovernanceTokenSnapshot {
string memory name,
string memory symbol
) public initializer {
_setDAORegistry(daoRegistry);
__DAORegistryProxy_init(daoRegistry);
_initialize(name, symbol);
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/InternalMarket/InternalMarket.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ contract InternalMarket is Initializable, InternalMarketBase {
* @param daoRegistry DAORegistry instance containing custom access control roles.
*/
function initialize(DAORegistry daoRegistry) public initializer {
_setDAORegistry(daoRegistry);
__DAORegistryProxy_init(daoRegistry);
_initialize(7 days);
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/RedemptionController/RedemptionController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ contract RedemptionController is Initializable, RedemptionControllerBase {
* @param daoRegistry The addresses of DAORoles for this contract.
*/
function initialize(DAORegistry daoRegistry) public initializer {
_setDAORegistry(daoRegistry);
__DAORegistryProxy_init(daoRegistry);
_initialize();
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/ResolutionManager/ResolutionManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ contract ResolutionManager is Initializable, ResolutionManagerBase {
* @param daoRegistry The roles extension of the DAO.
*/
function initialize(DAORegistry daoRegistry) public initializer {
_setDAORegistry(daoRegistry);
__DAORegistryProxy_init(daoRegistry);
}

/// @custom:oz-upgrades-unsafe-allow constructor
Expand Down
2 changes: 1 addition & 1 deletion contracts/ShareholderRegistry/ShareholderRegistryBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ contract ShareholderRegistryBase is ERC20Upgradeable, DAORegistryProxy {
string memory name,
string memory symbol
) internal virtual {
_setDAORegistry(daoRegistry);
__DAORegistryProxy_init(daoRegistry);
__ERC20_init(name, symbol);
SHAREHOLDER_STATUS = keccak256("SHAREHOLDER_STATUS");
INVESTOR_STATUS = keccak256("INVESTOR_STATUS");
Expand Down
2 changes: 1 addition & 1 deletion contracts/extensions/DAORegistryProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import "@openzeppelin/contracts/utils/Strings.sol";
contract DAORegistryProxy is ContextUpgradeable {
DAORegistry internal _daoRegistry;

function _setDAORegistry(DAORegistry daoRegistry) internal {
function __DAORegistryProxy_init(DAORegistry daoRegistry) internal {
require(
address(daoRegistry) != address(0),
"DAORegistryProxy: 0x0 not allowed"
Expand Down

0 comments on commit b8cff73

Please sign in to comment.