Skip to content

Commit

Permalink
Use more applicable naming for admin
Browse files Browse the repository at this point in the history
  • Loading branch information
thedarkjester committed Oct 20, 2024
1 parent e50754d commit ed2fd6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/contracts/tokenBridge/TokenBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@ contract TokenBridge is
/**
* @notice Sets permissions for a list of addresses and their roles as well as initialises the PauseManager pauseType:role mappings.
* @dev This function is a reinitializer and can only be called once per version. Should be called using an upgradeAndCall transaction to the ProxyAdmin.
* @param _securityCouncil The security council to get default admin.
* @param _defaultAdmin The default admin account's address.
* @param _roleAddresses The list of addresses and roles to assign permissions to.
* @param _pauseTypeRoles The list of pause types to associate with roles.
* @param _unpauseTypeRoles The list of unpause types to associate with roles.
*/
function reinitializePauseTypesAndPermissions(
address _securityCouncil,
address _defaultAdmin,
RoleAddress[] calldata _roleAddresses,
PauseTypeRole[] calldata _pauseTypeRoles,
PauseTypeRole[] calldata _unpauseTypeRoles
Expand All @@ -169,7 +169,7 @@ contract TokenBridge is
revert ZeroAddressNotAllowed();
}

_grantRole(DEFAULT_ADMIN_ROLE, _securityCouncil);
_grantRole(DEFAULT_ADMIN_ROLE, _defaultAdmin);

assembly {
/// @dev Wiping the storage slot 101 of _owner as it is replaced by AccessControl and there is now the ERC165 __gap in its place.
Expand Down

0 comments on commit ed2fd6f

Please sign in to comment.