Skip to content

Commit

Permalink
chore: inconsequential tweaks to address compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MinisculeTarantula committed Nov 1, 2024
1 parent b750b70 commit 621d8cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/NoDelayTimelock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ contract NoDelayTimelock {
mapping (bytes32 => bool) public queuedTransactions;


constructor(address admin_, uint delay_) public {
constructor(address admin_, uint delay_) {
require(delay_ >= MINIMUM_DELAY, "Timelock::constructor: Delay must exceed minimum delay.");
require(delay_ <= MAXIMUM_DELAY, "Timelock::setDelay: Delay must not exceed maximum delay.");

Expand All @@ -35,6 +35,8 @@ contract NoDelayTimelock {

fallback() external payable { }

receive() external payable { }

function setDelay(uint delay_) public {
require(msg.sender == address(this), "Timelock::setDelay: Call must come from Timelock.");
require(delay_ >= MINIMUM_DELAY, "Timelock::setDelay: Delay must exceed minimum delay.");
Expand Down

0 comments on commit 621d8cd

Please sign in to comment.