Skip to content

Commit

Permalink
removing additional msg field from ZeroAddress error
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-de-leon-cll authored and mohamed-mehany committed Jan 24, 2024
1 parent b5cff5e commit c0f26a1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ contract ScrollSequencerUptimeFeed is
/// @notice Replacement for AggregatorV3Interface "No data present"
error NoDataPresent();
/// @notice Address must not be the zero address
error ZeroAddress(string msg);
error ZeroAddress();

event L1SenderTransferred(address indexed from, address indexed to);
/// @dev Emitted when an `updateStatus` call is ignored due to unchanged status or stale timestamp
Expand Down Expand Up @@ -71,7 +71,7 @@ contract ScrollSequencerUptimeFeed is
/// @param initialStatus The initial status of the feed
constructor(address l1SenderAddress, address l2CrossDomainMessengerAddr, bool initialStatus) {
if (l2CrossDomainMessengerAddr == address(0)) {
revert ZeroAddress("cannot set L1 cross domain messenger address to zero address");
revert ZeroAddress();
}

_setL1Sender(l1SenderAddress);
Expand Down Expand Up @@ -103,7 +103,7 @@ contract ScrollSequencerUptimeFeed is
/// @notice internal method that stores the L1 sender
function _setL1Sender(address to) private {
if (to == address(0)) {
revert ZeroAddress("cannot set L1 sender address to zero address");
revert ZeroAddress();
}

address from = s_l1Sender;
Expand Down

0 comments on commit c0f26a1

Please sign in to comment.