@@ -26,7 +26,7 @@ contract TimelockController is AccessControl, ERC721Holder, ERC1155Holder {
26
26
bytes32 public constant PROPOSER_ROLE = keccak256 ("PROPOSER_ROLE " );
27
27
bytes32 public constant EXECUTOR_ROLE = keccak256 ("EXECUTOR_ROLE " );
28
28
bytes32 public constant CANCELLER_ROLE = keccak256 ("CANCELLER_ROLE " );
29
- uint256 internal constant _DONE_TIMESTAMP = uint256 (1 );
29
+ uint256 internal constant DONE_TIMESTAMP = uint256 (1 );
30
30
31
31
mapping (bytes32 id = > uint256 ) private _timestamps;
32
32
uint256 private _minDelay;
@@ -207,7 +207,7 @@ contract TimelockController is AccessControl, ERC721Holder, ERC1155Holder {
207
207
uint256 timestamp = getTimestamp (id);
208
208
if (timestamp == 0 ) {
209
209
return OperationState.Unset;
210
- } else if (timestamp == _DONE_TIMESTAMP ) {
210
+ } else if (timestamp == DONE_TIMESTAMP ) {
211
211
return OperationState.Done;
212
212
} else if (timestamp > block .timestamp ) {
213
213
return OperationState.Waiting;
@@ -432,7 +432,7 @@ contract TimelockController is AccessControl, ERC721Holder, ERC1155Holder {
432
432
if (! isOperationReady (id)) {
433
433
revert TimelockUnexpectedOperationState (id, _encodeStateBitmap (OperationState.Ready));
434
434
}
435
- _timestamps[id] = _DONE_TIMESTAMP ;
435
+ _timestamps[id] = DONE_TIMESTAMP ;
436
436
}
437
437
438
438
/**
@@ -445,7 +445,7 @@ contract TimelockController is AccessControl, ERC721Holder, ERC1155Holder {
445
445
* - the caller must be the timelock itself. This can only be achieved by scheduling and later executing
446
446
* an operation where the timelock is the target and the data is the ABI-encoded call to this function.
447
447
*/
448
- function updateDelay (uint256 newDelay ) external virtual {
448
+ function updateDelay (uint256 newDelay ) public virtual {
449
449
address sender = _msgSender ();
450
450
if (sender != address (this )) {
451
451
revert TimelockUnauthorizedCaller (sender);
0 commit comments