Skip to content

Commit

Permalink
chore: reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-manuel committed Jun 14, 2024
1 parent 2bb7f19 commit 5fd7162
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Executor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ contract Executor is IExecutor, AccessControl {
_setRoleAdmin(SUBMISSION_ROLE, DEFAULT_ADMIN_ROLE);
_setRoleAdmin(GUARDIAN_ROLE, DEFAULT_ADMIN_ROLE);

// Necessary for self-referential calls to change configuration
_grantRole(DEFAULT_ADMIN_ROLE, address(this));
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
_grantRole(DEFAULT_ADMIN_ROLE, address(this)); // Necessary for self-referential calls to change configuration
}

/******************************************************************************************************************/
Expand Down Expand Up @@ -151,7 +150,7 @@ contract Executor is IExecutor, AccessControl {
function cancel(uint256 actionsSetId) external override onlyRole(GUARDIAN_ROLE) {
if (getCurrentState(actionsSetId) != ActionsSetState.Queued) revert OnlyQueuedActions();

ActionsSet storage actionsSet =_actionsSets[actionsSetId];
ActionsSet storage actionsSet = _actionsSets[actionsSetId];
actionsSet.canceled = true;

uint256 targetsLength = actionsSet.targets.length;
Expand Down

0 comments on commit 5fd7162

Please sign in to comment.