Add Slither reentrancy exception to GovernorTimelockAccess._queueOperations (#5643)
Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com>
This commit is contained in:
@ -237,6 +237,9 @@ abstract contract GovernorTimelockAccess is Governor {
|
||||
for (uint256 i = 0; i < targets.length; ++i) {
|
||||
(, bool withDelay, ) = _getManagerData(plan, i);
|
||||
if (withDelay) {
|
||||
// This function can reenter when calling `_manager.schedule` before performing state updates in `_setManagerData`.
|
||||
// However, the `manager` is a trusted contract in the current context's security model (e.g. an `AccessManager`).
|
||||
// slither-disable-next-line reentrancy-no-eth
|
||||
(, uint32 nonce) = _manager.schedule(targets[i], calldatas[i], etaSeconds);
|
||||
_setManagerData(plan, i, true, nonce);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user