diff --git a/src/SystemRoleUpgradeable.sol b/src/SystemRoleUpgradeable.sol index 69a8d6d..e5cb1e4 100644 --- a/src/SystemRoleUpgradeable.sol +++ b/src/SystemRoleUpgradeable.sol @@ -64,9 +64,9 @@ abstract contract SystemRoleUpgradeable is _; } - /** - * @dev modifier to restrict access to admin account. - */ + /** + * @dev modifier to restrict access to admin account. + */ modifier onlyAdminAccount(address account) { require( hasRole(ADMIN_ROLE, account), @@ -139,4 +139,9 @@ abstract contract SystemRoleUpgradeable is revokeRole(ADMIN_ROLE, account); emit AdminAccountRemoved(account); } + + // Override renounceOwnership to prevent renouncing ownership + function renounceOwnership() public override onlyOwner { + revert("Ownership cannot be renounced"); + } } diff --git a/src/Token.sol b/src/Token.sol index b73c55e..1bf4ec5 100644 --- a/src/Token.sol +++ b/src/Token.sol @@ -177,6 +177,7 @@ contract Token is ); } + } contract EURe is Token {