Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Jan 18, 2024
1 parent 55de46e commit 34c019c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ contract AccessManagementSystem is System, LimitedCallContext {
* @param resourceId The ID of the resource to grant access to.
* @param grantee The address to which access should be granted.
*/
function grantAccess(ResourceId resourceId, address grantee) onlyDelegatecall public virtual {
function grantAccess(ResourceId resourceId, address grantee) public virtual onlyDelegatecall {
// Require the resource to exist
AccessControl.requireExistence(resourceId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ contract WorldRegistrationSystem is System, IWorldErrors, LimitedCallContext {
* @param hookAddress The address of the hook being registered
* @param enabledHooksBitmap Bitmap indicating which hooks are enabled
*/
function registerSystemHook(ResourceId systemId, ISystemHook hookAddress, uint8 enabledHooksBitmap) public virtual onlyDelegatecall {
function registerSystemHook(
ResourceId systemId,
ISystemHook hookAddress,
uint8 enabledHooksBitmap
) public virtual onlyDelegatecall {
// Require the provided system ID to have type RESOURCE_SYSTEM
if (systemId.getType() != RESOURCE_SYSTEM) {
revert World_InvalidResourceType(RESOURCE_SYSTEM, systemId, systemId.toString());
Expand Down Expand Up @@ -115,7 +119,7 @@ contract WorldRegistrationSystem is System, IWorldErrors, LimitedCallContext {
* @param system The system being registered
* @param publicAccess Flag indicating if access control check is bypassed
*/
function registerSystem(ResourceId systemId, System system, bool publicAccess) public virtual onlyDelegatecall{
function registerSystem(ResourceId systemId, System system, bool publicAccess) public virtual onlyDelegatecall {
// Require the provided system ID to have type RESOURCE_SYSTEM
if (systemId.getType() != RESOURCE_SYSTEM) {
revert World_InvalidResourceType(RESOURCE_SYSTEM, systemId, systemId.toString());
Expand Down

0 comments on commit 34c019c

Please sign in to comment.