Skip to content

Commit

Permalink
slither fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WalidOfNow committed May 31, 2024
1 parent 7eda0b0 commit 2538c16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Timelock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ contract Timelock {

bytes32 txHash = keccak256(abi.encode(target, callData, operationId));

// slither-disable-next-line incorrect-equality
if (queue[txHash] == 0) {
revert InvalidTransaction(txHash);
}
Expand All @@ -237,6 +238,7 @@ contract Timelock {
if (msg.sender == OPERATIONS_MULTISIG) {
uint256 lockedUntil = queue[txHash];
// Operations Multisig must follow queue and delay rules
// slither-disable-next-line incorrect-equality
if (lockedUntil == 0) {
revert InvalidTransaction(txHash);
}
Expand Down

0 comments on commit 2538c16

Please sign in to comment.