Skip to content

Commit

Permalink
refactor: change value of nextCastTime (#6)
Browse files Browse the repository at this point in the history
Make it consistent with other emergency spells.
  • Loading branch information
amusingaxl authored Oct 16, 2024
1 parent d54da82 commit eef9ec0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EmergencyDropSpell.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ contract EmergencyDropSpell is EmergencySpellLike {
uint256 public immutable eta;
/// @notice The original spell encoded call.
bytes public sig;
/// @notice Emergency spells can be cast immediately after deployed.
/// @dev Declared to keep compatibility with `DssExec`.
uint256 public immutable nextCastTime = block.timestamp;
// @dev An emergency spell does not need to be cast, as all actions happen during the schedule phase.
// Notice that cast is usually not supposed to revert, so it is implemented as a no-op.
uint256 public immutable nextCastTime = type(uint256).max;

/// @notice Drop have been called.
event Drop();
Expand Down

0 comments on commit eef9ec0

Please sign in to comment.