Skip to content

Commit

Permalink
♻️ Further chore
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Jan 21, 2024
1 parent 669abb6 commit 31a1af1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/governance/TimelockController.vy
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,9 @@ def execute(target: address, amount: uint256, payload: Bytes[1_024], predecessor
(optional with empty bytes).
@param salt The 32-byte salt of the operation.
@custom:security This function can reenter, but it doesn't pose
a risk because `_after_call` checks that the proposal is
pending, thus any modifications to the operation during
reentrancy are caught.
a risk because `_after_call` checks that the
proposal is pending, thus any modifications to
the operation during reentrancy are caught.
"""
self._only_role_or_open_role(EXECUTOR_ROLE)
id: bytes32 = self._hash_operation(target, amount, payload, predecessor, salt)
Expand Down Expand Up @@ -527,9 +527,9 @@ def execute_batch(targets: DynArray[address, 128], amounts: DynArray[uint256, 12
(optional with empty bytes).
@param salt The 32-byte salt of the operation.
@custom:security This function can reenter, but it doesn't pose
a risk because `_after_call` checks that the proposal is
pending, thus any modifications to the operation during
reentrancy are caught.
a risk because `_after_call` checks that the
proposal is pending, thus any modifications to
the operation during reentrancy are caught.
"""
self._only_role_or_open_role(EXECUTOR_ROLE)
assert len(targets) == len(amounts) and len(targets) == len(payloads), "TimelockController: length mismatch"
Expand Down

0 comments on commit 31a1af1

Please sign in to comment.