Skip to content

Commit 373c7fa

Browse files
committed
refactor: Update initialize function parameters to use _owner for clarity in RLCAdapter and RLCOFT contracts
1 parent ea1d723 commit 373c7fa

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/RLCAdapter.sol

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ contract RLCAdapter is OFTAdapterUpgradeable, UUPSUpgradeable, AccessControlDefa
2424
}
2525

2626
/// @notice Initializes the contract
27-
/// @param _delegate Address of the contract owner
28-
function initialize(address _delegate) public initializer {
29-
__OFTAdapter_init(_delegate);
30-
__Ownable_init(_delegate);
27+
/// @param _owner Address of the contract owner
28+
function initialize(address _owner) public initializer {
29+
__OFTAdapter_init(_owner);
30+
__Ownable_init(_owner);
3131
__UUPSUpgradeable_init();
32-
__AccessControlDefaultAdminRules_init(0, _delegate);
33-
_grantRole(UPGRADER_ROLE, _delegate);
32+
__AccessControlDefaultAdminRules_init(0, _owner);
33+
_grantRole(UPGRADER_ROLE, _owner);
3434
}
3535

3636
function owner()

src/RLCOFT.sol

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ contract RLCOFT is OFTUpgradeable, UUPSUpgradeable, AccessControlDefaultAdminRul
2424
/// @notice Initializes the contract
2525
/// @param _name Name of the token
2626
/// @param _symbol Symbol of the token
27-
/// @param _delegate Address of the contract owner
28-
function initialize(string memory _name, string memory _symbol, address _delegate) public initializer {
29-
__OFT_init(_name, _symbol, _delegate);
30-
__Ownable_init(_delegate);
27+
/// @param _owner Address of the contract owner
28+
function initialize(string memory _name, string memory _symbol, address _owner) public initializer {
29+
__OFT_init(_name, _symbol, _owner);
30+
__Ownable_init(_owner);
3131
__UUPSUpgradeable_init();
32-
__AccessControlDefaultAdminRules_init(0, _delegate);
33-
_grantRole(UPGRADER_ROLE, _delegate);
32+
__AccessControlDefaultAdminRules_init(0, _owner);
33+
_grantRole(UPGRADER_ROLE, _owner);
3434
}
3535

3636
/// @notice Authorizes an upgrade to a new implementation

0 commit comments

Comments
 (0)