Skip to content

Commit

Permalink
feat: remove arg in error
Browse files Browse the repository at this point in the history
  • Loading branch information
TuDo1403 committed Oct 7, 2023
1 parent 3476223 commit a3754aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/RNSUnified.sol
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ contract RNSUnified is Initializable, RNSToken {

for (uint256 i; i < ids.length;) {
id = ids[i];
if (!_exists(id)) revert Unexists(id);
if (!_exists(id)) revert Unexists();
if (_recordOf[id].mut.protected != protected) {
_recordOf[id].mut.protected = protected;
emit RecordUpdated(id, indicator, record);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/INSUnified.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface INSUnified is IERC721Metadata {
/// @dev Error: The provided token id is expired.
error Expired();
/// @dev Error: The provided token id is unexists.
error Unexists(uint256 id);
error Unexists();
/// @dev Error: The provided id expiry is greater than parent id expiry.
error ExceedParentExpiry();
/// @dev Error: The provided name is unavailable for registration.
Expand Down

0 comments on commit a3754aa

Please sign in to comment.